Skip to content

Commit

Permalink
bug needs to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Kunz committed Sep 2, 2024
1 parent 43012c3 commit ec5326b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-service/lib/deep-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function onDeep(req, next) {
new InsertResult(query, [
{
changes: Array.isArray(req.data) ? req.data.length : 1,
...(inserts[rootInsertIdx]?.results[rootInsertEntriesIdx]?.lastInsertRowid
...(inserts[rootInsertIdx]?.results[rootInsertEntriesIdx]?.lastInsertRowid // BUG TODO FIXME rootInsertEntriesIdx does not work here
? { lastInsertRowid: inserts[rootInsertIdx].results[rootInsertEntriesIdx].lastInsertRowid }
: {}), // last entry is root entry (depth-first)
},
Expand Down

0 comments on commit ec5326b

Please sign in to comment.