fix(assignments): complete dropped juror reshuffle with type-safe logic
All checks were successful
Build and Push Docker Image / build (push) Successful in 7m49s
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:
@@ -209,12 +209,14 @@ async function reassignDroppedJurorAssignments(params: {
|
||||
userId: params.droppedJurorId,
|
||||
OR: [
|
||||
{ evaluation: null },
|
||||
{ evaluation: { status: { in: ['PENDING', 'DRAFT'] } } },
|
||||
{ evaluation: { status: { not: 'SUBMITTED' } } },
|
||||
],
|
||||
},
|
||||
include: {
|
||||
project: { select: { id: true, title: true } },
|
||||
evaluation: { select: { id: true, status: true } },
|
||||
select: {
|
||||
id: true,
|
||||
projectId: true,
|
||||
createdAt: true,
|
||||
project: { select: { title: true } },
|
||||
},
|
||||
orderBy: { createdAt: 'asc' },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user