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,
|
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' },
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user