Browse Source

remove catch phrase

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

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

@ -24,16 +24,11 @@ async function executeBulkOperation(
id: model.id,
viewId: view?.id,
dbDriver: NcConnectionMgrv2.get(base),
}).catch((error) => {
res.status(500).json(error);
});
if (!baseModel) {
return;
}
const sqlResult = await baseModel[operation](...options).catch((error) => {
res.status(500).json(error);
});
res.json(sqlResult);
res.json(await baseModel[operation](...options));
}
async function bulkDataInsert(req: Request, res: Response) {

Loading…
Cancel
Save