Fix SQL errors

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-08-10 18:26:02 +04:00
parent b3002d839c
commit 23b54e7517
2 changed files with 9 additions and 3 deletions

View File

@@ -319,7 +319,9 @@ func (p *Documents) CountByControlID(
WITH plcs AS (
SELECT
p.id,
p.tenant_id
p.tenant_id,
p.search_vector,
p.show_on_trust_center
FROM
documents p
INNER JOIN
@@ -428,7 +430,9 @@ func (p *Documents) CountByRiskID(
WITH plcs AS (
SELECT
p.id,
p.tenant_id
p.tenant_id,
p.search_vector,
p.show_on_trust_center
FROM
documents p
INNER JOIN
@@ -479,7 +483,8 @@ WITH plcs AS (
p.current_published_version,
p.show_on_trust_center,
p.created_at,
p.updated_at
p.updated_at,
p.search_vector
FROM
documents p
INNER JOIN

View File

@@ -136,6 +136,7 @@ WITH rsks AS (
r.residual_likelihood,
r.residual_impact,
r.residual_risk_score,
r.search_vector,
r.created_at,
r.updated_at
FROM