Browse Source

change function name more specific

pull/5165/head
Semjon Geist 2 years ago
parent
commit
da13949b37
  1. 4
      packages/nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts

4
packages/nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts

@ -14,7 +14,7 @@ type BulkOperation =
| 'bulkDelete' | 'bulkDelete'
| 'bulkDeleteAll'; | 'bulkDeleteAll';
async function getModelAndBase(req: Request) { async function getModelViewBase(req: Request) {
const { model, view } = await getViewAndModelFromRequestByAliasOrId(req); const { model, view } = await getViewAndModelFromRequestByAliasOrId(req);
const base = await Base.get(model.base_id); const base = await Base.get(model.base_id);
@ -27,7 +27,7 @@ async function executeBulkOperation<T extends BulkOperation>(
operation: T, operation: T,
options: Parameters<typeof BaseModelSqlv2.prototype[T]> options: Parameters<typeof BaseModelSqlv2.prototype[T]>
) { ) {
const { model, view, base } = await getModelAndBase(req); const { model, view, base } = await getModelViewBase(req);
const baseModel = await Model.getBaseModelSQL({ const baseModel = await Model.getBaseModelSQL({
id: model.id, id: model.id,
viewId: view?.id, viewId: view?.id,

Loading…
Cancel
Save