Fix totalCount 5xx

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-06-11 16:28:59 -07:00
committed by Sacha Al Himdani
parent 87b99ea912
commit 1f94ddba95
2 changed files with 12 additions and 5 deletions

View File

@@ -289,7 +289,8 @@ func (p *Documents) CountByControlID(
q := `
WITH plcs AS (
SELECT
p.id
p.id,
p.tenant_id
FROM
documents p
INNER JOIN