fix: Not able to create consecutive ooo (#17388)

* fix: able to create consecutive ooo

* added e2e test

* chore

* update to allow overlapping ooo and test for same

* refactor to reduce repeating code in tests

* nit

* added testcases for consecutive and reverse redirects

* fix:duplicate OOO creation

* prevent duplicate entries, also added test

* chore

* update after merges

* correct datetype in prisma query

* update to changes in rdp after merge

---------

Co-authored-by: Prashant Varma <[email protected]>
This commit is contained in:
VijayandPrashant Varma authored and GitHub committed 2024-12-10 19:46:28 +05:30
1 parent a1fc6668d5
commit 370345da22
4 files changed
+145 -12

No files matched your search

@@ -114,15 +114,7 @@ export default function CreateEventTypeDialog({
return (
<Dialog
name="new"
clearQueryParamsOnClose={[
"eventPage",
"type",
"description",
"title",
"length",
"slug",
"locations",
]}>
clearQueryParamsOnClose={["eventPage", "type", "description", "title", "length", "slug", "locations"]}>
<DialogContent
type="creation"
enableOverflow
+1 -1
View File
@@ -1,3 +1,4 @@
import type { calendar_v3 } from "@googleapis/calendar";
import type {
BookingSeat,
DestinationCalendar,
@@ -5,7 +6,6 @@ import type {
SelectedCalendar as _SelectedCalendar,
} from "@prisma/client";
import type { Dayjs } from "dayjs";
import type { calendar_v3 } from "@googleapis/calendar";
import type { Time } from "ical.js";
import type { TFunction } from "next-i18next";
import type z from "zod";