From 0739e07a5f546385f925219ce6fac923b5c5c01b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 15 Jun 2021 13:47:08 +0100 Subject: [PATCH] merge --- packages/server/src/api/controllers/row/external.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/controllers/row/external.js b/packages/server/src/api/controllers/row/external.js index d91ea7cdaf..1025365cdd 100644 --- a/packages/server/src/api/controllers/row/external.js +++ b/packages/server/src/api/controllers/row/external.js @@ -123,9 +123,11 @@ exports.bulkDestroy = async ctx => { // TODO: this can probably be optimised to a single SQL statement in the future let promises = [] for (let row of rows) { - promises.push(handleRequest(appId, DataSourceOperation.DELETE, tableId, { - id: row._id, - })) + promises.push( + handleRequest(appId, DataSourceOperation.DELETE, tableId, { + id: row._id, + }) + ) } await Promise.all(promises) ctx.body = { response: { ok: true }, rows }