fix multiResult scrub, now mogrifies argument
authorJustin Wind <justin.wind+git@gmail.com>
Mon, 7 Apr 2025 20:13:22 +0000 (13:13 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Mon, 7 Apr 2025 20:13:22 +0000 (13:13 -0700)
lib/postgres-creator.js

index 34e28b1f32a94dc5112f5fb7f133f9f5eab623f7..dc0ee93e702c11773e902e63e53a02ff18d6a4f5 100644 (file)
@@ -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;
     }