Skip to content

Scheduling infrastructure for absolutely everyone.

Remove old comment

Joe Au-Yeung4ac9c1e6dd4b
diff --git a/pages/api/schedules/index.ts b/pages/api/schedules/index.ts
index 29b5577c516..d6156c9c8b0 100644
--- a/pages/api/schedules/index.ts
+++ b/pages/api/schedules/index.ts
@@ -32,7 +32,6 @@ async function createOrlistAllSchedules(
* description: No schedules were found
*/
const data = await prisma.schedule.findMany({
- // where: { userId: body.userId && isAdmin ? body.userId : userId },
where: {
...(Array.isArray(body.userId)
? { userId: { in: body.userId } }