|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|