Skip to content

Commit

Permalink
Fixed bulk settings input serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhgrg committed Nov 14, 2019
1 parent b7df5c3 commit eaf7289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/api/canary/utils/serializers/input/settings.js
Expand Up @@ -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});
}
});
Expand Down

0 comments on commit eaf7289

Please sign in to comment.