@@ -319,7 +319,9 @@ func (p *Documents) CountByControlID(
|
|||||||
WITH plcs AS (
|
WITH plcs AS (
|
||||||
SELECT
|
SELECT
|
||||||
p.id,
|
p.id,
|
||||||
p.tenant_id
|
p.tenant_id,
|
||||||
|
p.search_vector,
|
||||||
|
p.show_on_trust_center
|
||||||
FROM
|
FROM
|
||||||
documents p
|
documents p
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -428,7 +430,9 @@ func (p *Documents) CountByRiskID(
|
|||||||
WITH plcs AS (
|
WITH plcs AS (
|
||||||
SELECT
|
SELECT
|
||||||
p.id,
|
p.id,
|
||||||
p.tenant_id
|
p.tenant_id,
|
||||||
|
p.search_vector,
|
||||||
|
p.show_on_trust_center
|
||||||
FROM
|
FROM
|
||||||
documents p
|
documents p
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -479,7 +483,8 @@ WITH plcs AS (
|
|||||||
p.current_published_version,
|
p.current_published_version,
|
||||||
p.show_on_trust_center,
|
p.show_on_trust_center,
|
||||||
p.created_at,
|
p.created_at,
|
||||||
p.updated_at
|
p.updated_at,
|
||||||
|
p.search_vector
|
||||||
FROM
|
FROM
|
||||||
documents p
|
documents p
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ WITH rsks AS (
|
|||||||
r.residual_likelihood,
|
r.residual_likelihood,
|
||||||
r.residual_impact,
|
r.residual_impact,
|
||||||
r.residual_risk_score,
|
r.residual_risk_score,
|
||||||
|
r.search_vector,
|
||||||
r.created_at,
|
r.created_at,
|
||||||
r.updated_at
|
r.updated_at
|
||||||
FROM
|
FROM
|
||||||
|
|||||||
Reference in New Issue
Block a user