mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: project details table refresh
This commit is contained in:
@@ -46,3 +46,15 @@ export const updateAgentAction = userAction
|
||||
data: updatedAgent,
|
||||
};
|
||||
});
|
||||
|
||||
export const getAgentAction = userAction.schema(z.string()).action(async ({parsedInput}) => {
|
||||
const agent = await db.query.agent.findFirst({
|
||||
where: eq(drizzleDb.schemas.agent.id, parsedInput),
|
||||
with: {
|
||||
databases: true
|
||||
}
|
||||
});
|
||||
return {
|
||||
data: agent,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user