Skip to content

Commit 5fc3fb0

Browse files
fix
1 parent 64c0d2c commit 5fc3fb0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • packages/openops/src/lib/openops-tables

packages/openops/src/lib/openops-tables/rows.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,16 @@ function getEqualityFilterType(
257257
return ViewFilterTypesEnum.equal;
258258
}
259259

260-
export async function batchDeleteRows(params: BatchDeleteRowsParams) {
260+
export async function batchDeleteRows(
261+
params: BatchDeleteRowsParams,
262+
): Promise<void> {
261263
if (params.rowIds.length === 0) {
262264
return;
263265
}
264266

265267
const url = `api/database/rows/table/${params.tableId}/batch-delete/`;
266268

267-
return executeWithConcurrencyLimit(
269+
await executeWithConcurrencyLimit(
268270
async () => {
269271
const authenticationHeader = createAxiosHeaders(params.tokenOrResolver);
270272
return await makeOpenOpsTablesPost(
@@ -277,7 +279,8 @@ export async function batchDeleteRows(params: BatchDeleteRowsParams) {
277279
logger.error('Error while batch deleting rows:', {
278280
error,
279281
url,
280-
rowIds: params.rowIds,
282+
rowIdsCount: params.rowIds.length,
283+
rowIdsSample: params.rowIds.slice(0, 10),
281284
});
282285
},
283286
);

0 commit comments

Comments
 (0)