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:
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: {
|
||||
|
||||
Reference in new issue
Block a user