diff --git a/functions/api/inactivity/new.ts b/functions/api/inactivity/new.ts index 3072e1f..929f6b7 100644 --- a/functions/api/inactivity/new.ts +++ b/functions/api/inactivity/new.ts @@ -27,7 +27,7 @@ export async function onRequestPost(context: RequestContext) { Date.now(), JSON.stringify(departments), end, - Number(hiatus), + typeof hiatus === "boolean" ? Number(hiatus) : 0, inactivityId, reason, start,