mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-08 02:07:39 +02:00
Update src/routes/api/tenants/[id]/appointments/[appointmentId]/cancel/+server.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -116,7 +116,7 @@ export const PUT: RequestHandler = async ({ params, locals }) => {
|
||||
|
||||
// Check if user is authenticated
|
||||
if (!tenantId || !appointmentId) {
|
||||
throw new ValidationError("Tenant ID and appointment ID are required", 400);
|
||||
throw new ValidationError("Tenant ID and appointment ID are required");
|
||||
}
|
||||
|
||||
checkPermission(locals, tenantId);
|
||||
|
||||
Reference in New Issue
Block a user