Skip to content

Commit 842ba09

Browse files
authored
refactor: v2 reschedule booking error messages (calcom#21647)
1 parent b3c822a commit 842ba09

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

apps/api/v2/src/ee/bookings/2024-08-13/services/bookings.service.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -683,12 +683,7 @@ export class BookingsService_2024_08_13 {
683683
}
684684
return this.outputService.getOutputBooking(databaseBooking);
685685
} catch (error) {
686-
if (error instanceof Error) {
687-
if (error.message === "no_available_users_found_error") {
688-
throw new BadRequestException("User either already has booking at this time or is not available");
689-
}
690-
}
691-
throw error;
686+
this.errorsBookingsService.handleBookingError(error, false);
692687
}
693688
}
694689

0 commit comments

Comments
 (0)