0
Fork 0
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:
Jakob Gillich 2014-01-07 22:32:43 +01:00
parent 5a638ed421
commit f8299ed769

View file

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