mirror of
https://github.com/TryGhost/Ghost.git
synced 2023-12-13 21:00:40 +01:00
Fixed bulk settings input serializer
This commit is contained in:
parent
b7df5c360d
commit
eaf7289af3
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ module.exports = {
|
|||
|
||||
//CASE: Ensure we don't store calculated fields `isEnabled/Config` in bulk email settings
|
||||
if (setting.key === 'bulk_email_settings') {
|
||||
const {apiKey, domain, baseUrl, provider} = setting.value ? JSON.parse(setting.value) : '';
|
||||
const {apiKey = '', domain = '', baseUrl = '', provider = 'mailgun'} = setting.value ? JSON.parse(setting.value) : {};
|
||||
setting.value = JSON.stringify({apiKey, domain, baseUrl, provider});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue