Applying feedback from a merged PR (#4887)
This commit is contained in:
1 parent
41c1e960f8
commit
0098591a56
2 files changed
+16
-28
No files matched your search
@@ -454,20 +454,12 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||
// handled separately for each occurrence
|
||||
OR: [
|
||||
{
|
||||
AND: [
|
||||
{ NOT: { recurringEventId: { equals: null } } },
|
||||
{
|
||||
status: {
|
||||
notIn: [BookingStatus.PENDING, BookingStatus.CANCELLED, BookingStatus.REJECTED],
|
||||
},
|
||||
},
|
||||
],
|
||||
recurringEventId: { not: null },
|
||||
status: { notIn: [BookingStatus.PENDING, BookingStatus.CANCELLED, BookingStatus.REJECTED] },
|
||||
},
|
||||
{
|
||||
AND: [
|
||||
{ recurringEventId: { equals: null } },
|
||||
{ status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED] } },
|
||||
],
|
||||
recurringEventId: { equals: null },
|
||||
status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED] },
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -495,12 +487,8 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||
endTime: { gte: new Date() },
|
||||
OR: [
|
||||
{
|
||||
AND: [
|
||||
{ NOT: { recurringEventId: { equals: null } } },
|
||||
{
|
||||
status: { equals: BookingStatus.PENDING },
|
||||
},
|
||||
],
|
||||
recurringEventId: { not: null },
|
||||
status: { equals: BookingStatus.PENDING },
|
||||
},
|
||||
{
|
||||
status: { equals: BookingStatus.PENDING },
|
||||
|
||||
Reference in new issue
Block a user