refactor: v2 reschedule booking error messages (#21647)

This commit is contained in:
Lauris Skraucis
2025-05-30 13:24:06 +00:00
committed by GitHub
parent b3c822abf7
commit 842ba09896
@@ -683,12 +683,7 @@ export class BookingsService_2024_08_13 {
}
return this.outputService.getOutputBooking(databaseBooking);
} catch (error) {
if (error instanceof Error) {
if (error.message === "no_available_users_found_error") {
throw new BadRequestException("User either already has booking at this time or is not available");
}
}
throw error;
this.errorsBookingsService.handleBookingError(error, false);
}
}