Implement Merge for trusct center document accesses

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-09 19:43:30 +01:00
parent eab3af5f26
commit c8e3636bf3
7 changed files with 552 additions and 400 deletions

View File

@@ -201,7 +201,7 @@ FROM
WHERE
%s
AND deleted_at IS NULL
AND id IN (SELECT id FROM UNNEST(@document_ids::text[]) AS t(id));;
AND id = ANY(@document_ids)
`
q = fmt.Sprintf(q, scope.SQLFragment())