mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fix TypeError due to missing mail config
This commit is contained in:
parent
5a638ed421
commit
f8299ed769
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ function updateCheckData() {
|
|||
data.node_version = process.versions.node;
|
||||
data.env = process.env.NODE_ENV;
|
||||
data.database_type = require('./models/base').client;
|
||||
data.email_transport = mailConfig && mailConfig.options && mailConfig.options.service ? mailConfig.options.service : mailConfig.transport;
|
||||
data.email_transport = mailConfig && (mailConfig.options && mailConfig.options.service ? mailConfig.options.service : mailConfig.transport);
|
||||
|
||||
return when.settle(ops).then(function (descriptors) {
|
||||
var hash = descriptors[0].value,
|
||||
|
@ -188,4 +188,4 @@ function updateCheck(res) {
|
|||
return deferred.promise;
|
||||
}
|
||||
|
||||
module.exports = updateCheck;
|
||||
module.exports = updateCheck;
|
||||
|
|
Loading…
Reference in a new issue