From f8299ed769f33e834305f5634c7821e8a65b515c Mon Sep 17 00:00:00 2001 From: Jakob Gillich Date: Tue, 7 Jan 2014 22:32:43 +0100 Subject: [PATCH] Fix TypeError due to missing mail config --- core/server/update-check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server/update-check.js b/core/server/update-check.js index 5de1e767100..57422acf5cd 100644 --- a/core/server/update-check.js +++ b/core/server/update-check.js @@ -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; \ No newline at end of file +module.exports = updateCheck;