From 40707d17911bb5dcf5b9b639479d9690c04308d2 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Fri, 23 Aug 2024 01:01:13 -0400 Subject: [PATCH] Fix for breaking change for NaN values in integer columns --- functions/api/inactivity/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,