fix: remove duplicate wrap of paired item data (#4001)

* fix: remove duplicate wrap of paired item data and adding where missing for other nodes
This commit is contained in:
Omar Ajoue
2022-09-01 17:48:22 +02:00
committed by GitHub
parent c8743ff6ca
commit 54efe20ee4
11 changed files with 17 additions and 148 deletions

View File

@@ -186,7 +186,7 @@ export async function pgQueryV2(
const mode = overrideMode ? overrideMode : ((additionalFields.mode ?? 'multiple') as string);
if (mode === 'multiple') {
(await db.multi(pgp.helpers.concat(allQueries)))
return (await db.multi(pgp.helpers.concat(allQueries)))
.map((result, i) => {
return this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray([...result]), {
itemData: { item: i },