From 573da29a4d1281c14d2caa536d4f8f416274c4b9 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 14 May 2020 23:35:03 +0200 Subject: [PATCH] Once upon a time where settings worked --- src/backups.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backups.js b/src/backups.js index 75c299d28..f682d5073 100644 --- a/src/backups.js +++ b/src/backups.js @@ -106,8 +106,10 @@ function injectPrivateFields(newConfig, currentConfig) { if (newConfig.password === constants.SECRET_PLACEHOLDER) { delete newConfig.password; } + newConfig.encryption = currentConfig.encryption || null; + } else { + newConfig.encryption = null; } - newConfig.encryption = currentConfig.encryption || null; if (newConfig.provider === currentConfig.provider) api(newConfig.provider).injectPrivateFields(newConfig, currentConfig); }