diff --git a/src/dao/api.dao.ts b/src/dao/api.dao.ts index 9447bfc..b275f39 100644 --- a/src/dao/api.dao.ts +++ b/src/dao/api.dao.ts @@ -304,6 +304,7 @@ export class NodeDao { LEFT JOIN "Node" as n3 ON e2."endNodeId" = n3.id LEFT JOIN "ClaimData" as cd ON c.id = cd."claimId" LEFT JOIN "Image" as i ON c.id = i."claimId" + ${Prisma.raw(whereClause)} ORDER BY c."effectiveDate" DESC LIMIT ${limit} @@ -335,7 +336,6 @@ export class NodeDao { } const claimIdMap = sourceLinkMap.get(entry.source_link)!; - if (!claimIdMap.has(entry.claim_id)) { claimIdMap.set(entry.claim_id, entry); }