From 8b68a87c523fe13a9f45786ee0fbb57b10efda13 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 5 Aug 2022 19:53:28 +0200 Subject: [PATCH] fix: do not skip undefined values --- backend/src/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/worker.rs b/backend/src/worker.rs index 0b85262c92..4375ae8f1b 100644 --- a/backend/src/worker.rs +++ b/backend/src/worker.rs @@ -738,7 +738,7 @@ const args = await Deno.readTextFile("args.json") async function run() {{ let res: any = await main(...args); - const res_json = JSON.stringify(res ?? null); + const res_json = JSON.stringify(res ?? null, (key, value) => typeof value === 'undefined' ? null : value); console.log(); console.log("result:"); console.log(res_json);