Skip to content

Commit 0f9499d

Browse files
committed
guard against edge case
1 parent 10535b6 commit 0f9499d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/web/app/(ee)/api/cron/cleanup/rejected-applications

apps/web/app/(ee)/api/cron/cleanup/rejected-applications/route.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export async function POST(req: Request) {
2626
updatedAt: {
2727
lt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 30),
2828
},
29+
commissions: {
30+
none: {}, // only delete if there are no commissions
31+
},
2932
},
3033
});
3134

0 commit comments

Comments
 (0)