mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-12 12:17:39 +02:00
Update src/routes/api/tenants/[id]/agents/[agentId]/absences/[absenceId]/+server.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -340,7 +340,7 @@ export const GET: RequestHandler = async ({ params, locals }) => {
|
||||
|
||||
// Check if user is authenticated
|
||||
if (!tenantId || !agentId || !absenceId) {
|
||||
return new ValidationError("Missing tenant, agent, or absence ID").toJson();
|
||||
throw new ValidationError("Missing tenant, agent, or absence ID");
|
||||
}
|
||||
|
||||
checkPermission(locals, tenantId);
|
||||
|
||||
Reference in New Issue
Block a user