fix(db): cast project_id to uuid in agent_sessions INSERT query
This commit is contained in:
@@ -83,7 +83,7 @@ export async function POST(
|
|||||||
// Create the session row
|
// Create the session row
|
||||||
const rows = await query<{ id: string }>(
|
const rows = await query<{ id: string }>(
|
||||||
`INSERT INTO agent_sessions (project_id, app_name, app_path, task, status, started_at)
|
`INSERT INTO agent_sessions (project_id, app_name, app_path, task, status, started_at)
|
||||||
VALUES ($1::text, $2, $3, $4, 'running', now())
|
VALUES ($1::uuid, $2, $3, $4, 'running', now())
|
||||||
RETURNING id`,
|
RETURNING id`,
|
||||||
[projectId, appName, appPath, task.trim()]
|
[projectId, appName, appPath, task.trim()]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user