Fix reschedule not happening in calendar if two calendards are there (#2733)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-05-12 09:33:15 +00:00
1 parent 574f9cb5d4
commit 7a08403636
3 files changed
+18 -10

No files matched your search

+1 -2
View File
@@ -646,8 +646,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
results = updateManager.results;
referencesToCreate = updateManager.referencesToCreate;
if (results.length > 0 && results.every((res) => !res.success)) {
if (results.length > 0 && results.some((res) => !res.success)) {
const error = {
errorCode: "BookingReschedulingMeetingFailed",
message: "Booking Rescheduling failed",