fix: API V1 slots add explicit orgSlug null fallback (#16593)

* add explicit orgSlug null fallback

* do it in schema

* to nullish
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2024-09-11 16:14:03 +00:00
1 parent 2f2f4dba60
commit 89250422ea
4 files changed
+46 -4

No files matched your search

@@ -85,7 +85,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
const startTime = now.startOf("month").toISOString();
const endTime = now.add(2, "month").endOf("month").toISOString();
const orgSlug = eventType?.team?.parent?.slug ?? undefined;
const orgSlug = eventType?.team?.parent?.slug ?? null;
const availableSlots = await getAvailableSlots({
input: {