Support extra case of config migration

This commit is contained in:
Fedor Indutny
2024-07-15 08:49:41 -07:00
committed by GitHub
parent 8f06df9f2a
commit a64e0a855b

View File

@@ -1654,6 +1654,7 @@ function getSQLKey(): string {
getLogger().info('getSQLKey: updating encrypted key in the config');
const encrypted = safeStorage.encryptString(key).toString('hex');
userConfig.set('encryptedKey', encrypted);
userConfig.set('key', undefined);
} else {
getLogger().info('getSQLKey: updating plaintext key in the config');
userConfig.set('key', key);