Skip to content

Commit

Permalink
fix[backend]: Fix query to include Image and ClaimData
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholoudxs55kh committed Aug 3, 2024
1 parent 9e300d7 commit f65083c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dao/api.dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ export class NodeDao {
INNER JOIN "Node" AS n2 ON e."endNodeId" = n2.id
LEFT JOIN "Edge" as e2 ON n2.id = e2."startNodeId"
LEFT JOIN "Node" as n3 ON e2."endNodeId" = n3.id
LEFT JOIN "Image" as i ON c.id = i."claimId"
LEFT JOIN "ClaimData" as cd ON c.id = cd."claimId"
${Prisma.raw(whereClause)}
ORDER BY c."effectiveDate" DESC
LIMIT ${limit}
Expand Down

0 comments on commit f65083c

Please sign in to comment.