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:
Hendrik
2025-09-16 16:10:28 +02:00
committed by GitHub
co-authored by Copilot
parent 93cfa75fc7
commit e2467c97d3
@@ -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);