Skip to content

Commit 82b2658

Browse files
committed
fix: add rescheduled to trpc procedure
1 parent b1dafab commit 82b2658

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

packages/trpc/server/routers/viewer/bookings.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,26 +117,36 @@ export const bookingsRouter = router({
117117
OR: [
118118
{
119119
recurringEventId: { not: null },
120-
status: { notIn: [BookingStatus.PENDING, BookingStatus.CANCELLED, BookingStatus.REJECTED] },
120+
status: {
121+
notIn: [
122+
BookingStatus.PENDING,
123+
BookingStatus.CANCELLED,
124+
BookingStatus.REJECTED,
125+
BookingStatus.RESCHEDULED,
126+
],
127+
},
121128
},
122129
{
123130
recurringEventId: { equals: null },
124-
status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED] },
131+
status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED, BookingStatus.RESCHEDULED] },
125132
},
126133
],
127134
},
128135
recurring: {
129136
endTime: { gte: new Date() },
130137
AND: [
131138
{ NOT: { recurringEventId: { equals: null } } },
132-
{ status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED] } },
139+
{
140+
status: { notIn: [BookingStatus.CANCELLED, BookingStatus.REJECTED, BookingStatus.RESCHEDULED] },
141+
},
133142
],
134143
},
135144
past: {
136145
endTime: { lte: new Date() },
137146
AND: [
138147
{ NOT: { status: { equals: BookingStatus.CANCELLED } } },
139148
{ NOT: { status: { equals: BookingStatus.REJECTED } } },
149+
{ NOT: { status: { equals: BookingStatus.RESCHEDULED } } },
140150
],
141151
},
142152
cancelled: {

0 commit comments

Comments
 (0)