fix modal afrer refactoring

This commit is contained in:
Dobromir Popov
2024-06-28 20:34:14 +03:00
parent ca92c07d4d
commit 5dba87f3dd
3 changed files with 43 additions and 25 deletions

View File

@ -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,