From 43012c3a04221cadb9b0c80a07085d5c9936babe Mon Sep 17 00:00:00 2001 From: "Dr. David A. Kunz" Date: Mon, 2 Sep 2024 11:54:43 +0200 Subject: [PATCH] explanation --- db-service/lib/deep-queries.js | 1 + 1 file changed, 1 insertion(+) diff --git a/db-service/lib/deep-queries.js b/db-service/lib/deep-queries.js index 358f64c0e..57ba25eaa 100644 --- a/db-service/lib/deep-queries.js +++ b/db-service/lib/deep-queries.js @@ -55,6 +55,7 @@ async function onDeep(req, next) { await Promise.all(queries.deletes.map(query => this.onSIMPLE({ query }))) await Promise.all(queries.updates.map(query => this.onUPDATE({ query }))) + // both insert query and entry are marked with `ROOT` to properly identify the right insert result later let rootInsertIdx = null let rootInsertEntriesIdx = null const inserts = await Promise.all(