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

This commit is contained in:
Carina Wollendorfer
2022-10-12 11:08:30 +01:00
committed by GitHub
parent a9b18496e0
commit b1656c7900
+1
View File
@@ -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) => {