From 0070350a9b955fda6ae996d5068ea80b6dacdb23 Mon Sep 17 00:00:00 2001 From: Semjon Geist Date: Mon, 20 Feb 2023 15:18:21 +0100 Subject: [PATCH] remove catch phrase --- .../nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts b/packages/nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts index acd91e2442..b96c4d0e33 100644 --- a/packages/nocodb/src/lib/meta/api/dataApis/bulkDataAliasApis.ts +++ b/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) {