You've already forked agentic-coding-workflow
feat(jobs/runners): attachment cleanup + chat DeleteAttachments query/method
This commit is contained in:
@@ -30,3 +30,6 @@ JOIN messages m ON m.id = a.message_id
|
||||
JOIN conversations c ON c.id = m.conversation_id
|
||||
WHERE c.deleted_at IS NOT NULL
|
||||
AND c.deleted_at < NOW() - ($1::interval);
|
||||
|
||||
-- name: DeleteAttachmentsByIDs :exec
|
||||
DELETE FROM message_attachments WHERE id = ANY($1::uuid[]);
|
||||
|
||||
Reference in New Issue
Block a user