fix(assignments): complete dropped juror reshuffle with type-safe logic
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m49s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claw
2026-02-20 00:07:30 +01:00
parent d3a63b0354
commit c7f20e2f32

View File

@@ -209,12 +209,14 @@ async function reassignDroppedJurorAssignments(params: {
userId: params.droppedJurorId, userId: params.droppedJurorId,
OR: [ OR: [
{ evaluation: null }, { evaluation: null },
{ evaluation: { status: { in: ['PENDING', 'DRAFT'] } } }, { evaluation: { status: { not: 'SUBMITTED' } } },
], ],
}, },
include: { select: {
project: { select: { id: true, title: true } }, id: true,
evaluation: { select: { id: true, status: true } }, projectId: true,
createdAt: true,
project: { select: { title: true } },
}, },
orderBy: { createdAt: 'asc' }, orderBy: { createdAt: 'asc' },
}) })