From cdef4085f84a2d04218dcd04398d69d4bd5e06a5 Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 1 Apr 2024 14:33:07 +0700 Subject: [PATCH] wip fix server log --- app/srv/ws/sync/editor/code/build-code.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/srv/ws/sync/editor/code/build-code.ts b/app/srv/ws/sync/editor/code/build-code.ts index 3420e571..ebb15d99 100644 --- a/app/srv/ws/sync/editor/code/build-code.ts +++ b/app/srv/ws/sync/editor/code/build-code.ts @@ -109,7 +109,8 @@ if (typeof global.server_hook === "function") { } ancestors.push(val); - if (val.constructor && val.constructor.name !== "Object"){ + if (val.constructor && + !['Object', 'Array'].includes(val.constructor.name)) { if (val.constructor.name === 'Error') { return '[Error] ' + val.message; }