From: Justin Wind Date: Mon, 7 Apr 2025 20:13:22 +0000 (-0700) Subject: fix multiResult scrub, now mogrifies argument X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cdc8fc0612900d94cbfaad832b83344161f2e1dc;p=squeep-db-helper fix multiResult scrub, now mogrifies argument --- diff --git a/lib/postgres-creator.js b/lib/postgres-creator.js index 34e28b1..dc0ee93 100644 --- a/lib/postgres-creator.js +++ b/lib/postgres-creator.js @@ -78,11 +78,10 @@ const PostgresCreator = (Abstract) => { * @returns {object[]} scrubbed results */ static _multiResultLog(results) { - const logResults = structuredClone(results); - for (const result of logResults) { + for (const result of results) { delete result._types; } - return logResults; + return results; }