fix: activity.ts pg_notify syntax and graph-service.ts sections empty inArray

This commit is contained in:
2026-07-29 13:03:55 +00:00
parent 4089d7464c
commit 83befd6a84
2 changed files with 6 additions and 11 deletions
+2 -10
View File
@@ -26,14 +26,6 @@ export async function recordActivity(params: RecordActivityParams): Promise<void
});
// Notify SSE subscribers
await sql.unsafe(
`SELECT pg_notify('project_e_events', ${JSON.stringify(
JSON.stringify({
type: entityType,
action,
id: entityId,
workspace_id: workspaceId,
})
)})`
);
const payload = JSON.stringify({ type: entityType, action, id: entityId, workspace_id: workspaceId });
await db.execute(sql.unsafe(`SELECT pg_notify('project_e_events', '${payload}')`));
}