diff --git a/packages/server/src/api/controllers/row/index.ts b/packages/server/src/api/controllers/row/index.ts index f3e7ca0c90..79cd5fbfe0 100644 --- a/packages/server/src/api/controllers/row/index.ts +++ b/packages/server/src/api/controllers/row/index.ts @@ -119,7 +119,7 @@ function isDeleteRow(input: any): input is DeleteRow { return input._id !== undefined } -async function processDeleteRowRequest(ctx: UserCtx) { +async function processDeleteRowsRequest(ctx: UserCtx) { let request = ctx.request.body as DeleteRows const tableId = utils.getTableId(ctx) @@ -139,7 +139,7 @@ async function deleteRows(ctx: UserCtx) { let deleteRequest = ctx.request.body as DeleteRows - const rowDeletes: Row[] = await processDeleteRowRequest(ctx) + const rowDeletes: Row[] = await processDeleteRowsRequest(ctx) deleteRequest.rows = rowDeletes let { rows } = await quotas.addQuery(