upd: fix api

No Issues
This commit is contained in:
amel
2024-09-09 17:06:01 +08:00
parent 465d39fb79
commit eb0f34a156
4 changed files with 48 additions and 19 deletions

View File

@@ -58,12 +58,15 @@ export async function GET(request: Request, context: { params: { id: string } })
}
})
const kalender = await prisma.divisionCalendar.count({
const kalender = await prisma.divisionCalendarReminder.count({
where: {
idDivision: String(id),
isActive: true,
dateStart: {
lte: new Date()
},
DivisionCalendar: {
isActive: true
}
}
})