From e9449458552f26f47afde59af6e0f00a7d2b5a51 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 18 Feb 2023 18:50:02 +0800 Subject: [PATCH] refactor(nocodb): move to !isProjectDeleted case --- .../nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts | 6 +++--- .../lib/version-upgrader/ncAttachmentUpgrader_0104002.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts index e835ed9606..f5c1393b3a 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts @@ -175,11 +175,11 @@ export default async function ({ ncMeta }: NcUpgraderCtx) { } await Promise.all(updateRecords); } catch (e) { - // throw the custom timeout error message if applicable - throwTimeoutError(e, timeoutErrorInfo); - // ignore the error related to deleted project if (!isProjectDeleted) { + // throw the custom timeout error message if applicable + throwTimeoutError(e, timeoutErrorInfo); + // throw general error throw e; } } diff --git a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts index 7843329cdf..cb47f72122 100644 --- a/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts +++ b/packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader_0104002.ts @@ -156,11 +156,11 @@ export default async function ({ ncMeta }: NcUpgraderCtx) { } await Promise.all(updateRecords); } catch (e) { - // throw the custom timeout error message if applicable - throwTimeoutError(e, timeoutErrorInfo); - // ignore the error related to deleted project if (!isProjectDeleted) { + // throw the custom timeout error message if applicable + throwTimeoutError(e, timeoutErrorInfo); + // throw general error throw e; } }