File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ export class MyReviewService {
281281 cp_incomplete.name ASC
282282 LIMIT 1
283283 ) AS "incompletePhaseName"
284- ) deliverable_reviews ON TRUE
284+ ) deliverable_reviews ON r.id IS NOT NULL
285285 ` ,
286286 Prisma . sql `
287287 LEFT JOIN LATERAL (
@@ -301,7 +301,7 @@ export class MyReviewService {
301301 WHERE rv_pending."resourceId" = r.id
302302 AND apr.id IS NULL
303303 ) AS "hasPendingAppealResponses"
304- ) pending_appeals ON TRUE
304+ ) pending_appeals ON r.id IS NOT NULL
305305 ` ,
306306 Prisma . sql `
307307 LEFT JOIN LATERAL (
@@ -322,12 +322,11 @@ export class MyReviewService {
322322 Prisma . sql `
323323 LEFT JOIN LATERAL (
324324 SELECT
325- EXISTS (
326- SELECT 1
327- FROM challenges."ChallengeReviewer" cr
328- WHERE cr."challengeId" = c.id
329- AND cr."aiWorkflowId" is not NULL
330- ) AS "hasAIReview"
325+ TRUE AS "hasAIReview"
326+ FROM challenges."ChallengeReviewer" cr
327+ WHERE cr."challengeId" = c.id
328+ AND cr."aiWorkflowId" IS NOT NULL
329+ LIMIT 1
331330 ) cr ON TRUE
332331 ` ,
333332 ] ;
You can’t perform that action at this time.
0 commit comments