fix: include direct round files in finalization doc count
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m36s

Files uploaded by admins with roundId but no requirementId were not
counted in the finalization page Docs column.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-12 23:37:52 -04:00
parent c7488b3e07
commit ec69706bc7

View File

@@ -507,7 +507,10 @@ export async function getFinalizationSummary(
where: {
roundId,
projectId: { in: projectIds },
requirementId: { in: requirements.map((r) => r.id) },
OR: [
{ requirementId: { in: requirements.map((r) => r.id) } },
{ requirementId: null },
],
},
_count: { _all: true },
})