fix: include direct round files in finalization doc count
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m36s
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:
@@ -507,7 +507,10 @@ export async function getFinalizationSummary(
|
|||||||
where: {
|
where: {
|
||||||
roundId,
|
roundId,
|
||||||
projectId: { in: projectIds },
|
projectId: { in: projectIds },
|
||||||
requirementId: { in: requirements.map((r) => r.id) },
|
OR: [
|
||||||
|
{ requirementId: { in: requirements.map((r) => r.id) } },
|
||||||
|
{ requirementId: null },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
_count: { _all: true },
|
_count: { _all: true },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user