diff --git a/backend/src/worker.rs b/backend/src/worker.rs index 85b1511c7e..1015e3e3fa 100644 --- a/backend/src/worker.rs +++ b/backend/src/worker.rs @@ -614,7 +614,7 @@ async function run() {{ if (res == undefined) {{ res = {{}} }} - if (typeof res !== 'object') {{ + if (typeof res !== 'object' || Array.isArray(res)) {{ res = {{ res1: res }} }}