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

This commit is contained in:
Carina Wollendorfer 2022-10-12 12:08:30 +02:00 committed by GitHub
parent a9b18496e0
commit b1656c7900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) => {