fix modal afrer refactoring
This commit is contained in:
@ -93,7 +93,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
const shifts = await prisma.shift.findMany({
|
||||
where: {
|
||||
isActive: true,
|
||||
isPublished: true,
|
||||
OR: [
|
||||
{ isPublished: true },
|
||||
{ user: { role: 'admin' } } // Todo: example. fix this
|
||||
],
|
||||
startTime: {
|
||||
gte: fromDate,
|
||||
//lt: toDate,
|
||||
|
Reference in New Issue
Block a user