fix: Don't default to ROUND_ROBIN as user bookings don't have it set (#22210)
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
1 parent
02967961f3
commit
f8a1bd7b94
1 file changed
+2
-2
@@ -489,7 +489,7 @@ export async function getBookings({
|
||||
"EventType.disableCancelling",
|
||||
"EventType.disableRescheduling",
|
||||
eb
|
||||
.cast<SchedulingType>(
|
||||
.cast<SchedulingType | null>(
|
||||
eb
|
||||
.case()
|
||||
.when("EventType.schedulingType", "=", "roundRobin")
|
||||
@@ -498,7 +498,7 @@ export async function getBookings({
|
||||
.then(SchedulingType["COLLECTIVE"])
|
||||
.when("EventType.schedulingType", "=", "managed")
|
||||
.then(SchedulingType["MANAGED"])
|
||||
.else(SchedulingType["ROUND_ROBIN"]) // Ensure ELSE provides a value within SchedulingTypeLiteral for cast safety
|
||||
.else(null)
|
||||
.end(),
|
||||
"varchar" // Or 'text' - use the actual SQL data type
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user