Browse Source

fix: update meta config as well, which will be `null`

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5718/head
Pranav C 1 year ago
parent
commit
305093e29d
  1. 10
      packages/nocodb/src/version-upgrader/ncProjectConfigUpgrader.ts

10
packages/nocodb/src/version-upgrader/ncProjectConfigUpgrader.ts

@ -26,13 +26,6 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
config = JSON.parse( config = JSON.parse(
CryptoJS.AES.decrypt(base.config, TEMP_KEY).toString(CryptoJS.enc.Utf8), CryptoJS.AES.decrypt(base.config, TEMP_KEY).toString(CryptoJS.enc.Utf8),
); );
} catch (e) {
continue;
}
if (!config) {
continue;
}
// Update the base config with the new secret key // Update the base config with the new secret key
actions.push( actions.push(
@ -47,6 +40,9 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
ncMeta, ncMeta,
), ),
); );
} catch (e) {
// ignore the error
}
} }
await Promise.all(actions); await Promise.all(actions);
} }

Loading…
Cancel
Save