diff --git a/src/server/routers/filtering.ts b/src/server/routers/filtering.ts index eb264c1..8ae8279 100644 --- a/src/server/routers/filtering.ts +++ b/src/server/routers/filtering.ts @@ -1201,6 +1201,19 @@ export const filteringRouter = router({ ) } + // Advance passed projects to the next round + if (nextRound && mainPoolPassedIds.length > 0) { + operations.push( + ctx.prisma.projectRoundState.createMany({ + data: mainPoolPassedIds.map((projectId) => ({ + projectId, + roundId: nextRound.id, + })), + skipDuplicates: true, + }) + ) + } + await ctx.prisma.$transaction(operations) await logAudit({