mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed config API not returning boolean (#14034)
refs https://github.com/TryGhost/Team/issues/1279 The mailgunIsConfigured config should be a boolean, rather than a string/undefined/null.
This commit is contained in:
parent
f3ed6ace12
commit
72e9efc7e5
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module.exports = {
|
|||
clientExtensions: config.get('clientExtensions') || {},
|
||||
enableDeveloperExperiments: config.get('enableDeveloperExperiments') || false,
|
||||
stripeDirect: config.get('stripeDirect'),
|
||||
mailgunIsConfigured: config.get('bulkEmail') && config.get('bulkEmail').mailgun,
|
||||
mailgunIsConfigured: !!(config.get('bulkEmail') && config.get('bulkEmail').mailgun),
|
||||
emailAnalytics: config.get('emailAnalytics'),
|
||||
forceUpgrade: config.get('host_settings:forceUpgrade') || false
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@ const expectedProperties = {
|
|||
|
||||
action: ['id', 'resource_type', 'actor_type', 'event', 'created_at', 'actor'],
|
||||
|
||||
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar', 'stripeDirect', 'emailAnalytics', 'forceUpgrade'],
|
||||
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar', 'stripeDirect', 'emailAnalytics', 'forceUpgrade', 'mailgunIsConfigured'],
|
||||
|
||||
post: _(schema.posts)
|
||||
.keys()
|
||||
|
|
Loading…
Add table
Reference in a new issue