From 51abcbb72758da0d8ef40d21ab59bec45af81879 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Thu, 6 Jun 2024 12:18:38 +0330 Subject: [PATCH] Fixed bug in query --- src/controllers/utils/modelHelper.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/utils/modelHelper.ts b/src/controllers/utils/modelHelper.ts index adbeb58..b5b129f 100644 --- a/src/controllers/utils/modelHelper.ts +++ b/src/controllers/utils/modelHelper.ts @@ -111,9 +111,7 @@ export const getProjectStats = async ( INNER JOIN ATTESTOR_ORGANISATION AS AT_OG ON PR_AT.ATTESTOR_ORGANISATION_ID = AT_OG.ID INNER JOIN ORGANISATION AS OG ON AT_OG.ORGANISATION_ID = OG.ID WHERE - PR_AT.REVOKED = FALSE - AND AT_OG.REVOKED = FALSE - AND PR_AT.PROJECT_ID = $1 + PR_AT.PROJECT_ID = $1 ), PR_ORG AS ( SELECT