fix(scheduler): use equals: null filter for endDate to satisfy Prisma where syntax and stop log spam
This commit is contained in:
@@ -317,6 +317,7 @@ model MatchingRun {
|
||||
|
||||
// Relations
|
||||
event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
|
||||
suggestions RecordingSuggestion[]
|
||||
|
||||
@@index([eventId, startedAt])
|
||||
@@map("matching_runs")
|
||||
|
||||
@@ -87,6 +87,11 @@ if (securityConfig.csrf.enabled) {
|
||||
}
|
||||
next(err);
|
||||
});
|
||||
} else {
|
||||
// Provide a harmless CSRF endpoint in development when CSRF is disabled
|
||||
app.get('/api/csrf-token', (req, res) => {
|
||||
res.json({ csrfToken: null, disabled: true });
|
||||
});
|
||||
}
|
||||
|
||||
// Request logging middleware
|
||||
|
||||
@@ -22,7 +22,7 @@ async function listCandidateEvents() {
|
||||
// Include events that end today or in the future
|
||||
OR: [
|
||||
{ endDate: { gte: now } },
|
||||
{ endDate: null },
|
||||
{ endDate: { equals: null } },
|
||||
],
|
||||
},
|
||||
select: {
|
||||
|
||||
Reference in New Issue
Block a user