fix: use sql tagged template for pg_notify instead of db.execute

This commit is contained in:
2026-07-29 13:07:03 +00:00
parent 83befd6a84
commit dbce018ce5
+1 -1
View File
@@ -27,5 +27,5 @@ export async function recordActivity(params: RecordActivityParams): Promise<void
// Notify SSE subscribers
const payload = JSON.stringify({ type: entityType, action, id: entityId, workspace_id: workspaceId });
await db.execute(sql.unsafe(`SELECT pg_notify('project_e_events', '${payload}')`));
await sql`SELECT pg_notify('project_e_events', ${payload}::text)`;
}