Skip to content

Scheduling infrastructure for absolutely everyone.

don't count unconfirmed recurring bookings that are in the past (#4968)

Carina Wollendorferb1656c790031
diff --git a/packages/trpc/server/routers/viewer.tsx b/packages/trpc/server/routers/viewer.tsx
index f407e5ab84d..ace94e968d3 100644
--- a/packages/trpc/server/routers/viewer.tsx
+++ b/packages/trpc/server/routers/viewer.tsx
@@ -1458,6 +1458,7 @@ const loggedInViewerRouter = createProtectedRouter()
recurringEventId: { not: { equals: null } },
status: { equals: "PENDING" },
userId: user.id,
+ endTime: { gt: new Date() },
},
});
return recurringGrouping.reduce((prev, current) => {