Node.js based forum software built for the modern web
perf: dont map twice for keys
Barış Soner Uşaklı4d6379d1d4f9
diff --git a/src/database/postgres/hash.js b/src/database/postgres/hash.jsindex db0102f43d..9ac5cd875a 100644--- a/src/database/postgres/hash.js+++ b/src/database/postgres/hash.js@@ -343,7 +343,7 @@ RETURNING ("data"->>$2::TEXT)::NUMERIC v`,}const keys = data.map(item => item[0]);await module.transaction(async (client) => {- await helpers.ensureLegacyObjectsType(client, data.map(item => item[0]), 'hash');+ await helpers.ensureLegacyObjectsType(client, keys, 'hash');const dataStrings = data.map(item => JSON.stringify(item[1]));