schedule is now published to be visible to the public

This commit is contained in:
Dobromir Popov
2024-03-27 09:05:17 +02:00
parent acd776e988
commit 3ccd9ad106
4 changed files with 53 additions and 5 deletions

View File

@ -90,6 +90,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const shifts = await prisma.shift.findMany({
where: {
isActive: true,
isPublished: true,
startTime: {
gte: fromDate,
lt: toDate,