schedule is for monthinfo periods
This commit is contained in:
@ -337,7 +337,7 @@ export default async function handler(req, res) {
|
||||
let updated = await prisma.shift.updateMany({
|
||||
where: {
|
||||
startTime: {
|
||||
gte: new Date(monthInfo.firstMonday.getFullYear(), monthInfo.firstMonday.getMonth(), 1),
|
||||
gte: new Date(monthInfo.firstMonday.getFullYear(), monthInfo.firstMonday.getMonth(), monthInfo.firstMonday.getDate()),
|
||||
lt: new Date(monthInfo.lastSunday.getFullYear(), monthInfo.lastSunday.getMonth() + 1, 1),
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user