2
1
Fork 0
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:
Rish 2019-11-14 08:20:16 +05:30
parent b7df5c360d
commit eaf7289af3

View file

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