Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Update framework code to 1.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
priojeetpriyom committed Nov 9, 2023
1 parent e1d53e9 commit 84a0fa1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Binary file added framework/dist/lisk-service-framework-1.6.6.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion framework/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lisk-service-framework",
"version": "1.6.5",
"version": "1.6.6",
"description": "Lisk Service Framework",
"keywords": [
"lisk",
Expand Down
10 changes: 9 additions & 1 deletion framework/src/database/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,15 @@ const getTableInstance = (tableConfig, knex) => {
isDefaultTrx = true;
}

const query = queryBuilder(params, tableConfig.primaryKey, false, trx).del();
let query;
if (Array.isArray(params)) {
query = Promise.all((
() => params.map(param => queryBuilder(param, null, false, trx).del())
)());
} else {
query = queryBuilder(params, tableConfig.primaryKey, false, trx).del();
}

if (isDefaultTrx)
return query
.then(async result => {
Expand Down

0 comments on commit 84a0fa1

Please sign in to comment.