From 2086a64a5eda4d67ad69e0acc78611c0d6ca7fb2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 3 Oct 2017 09:40:52 -0400 Subject: [PATCH] fixes #5947 --- src/upgrades/1.6.0/generate-email-logo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upgrades/1.6.0/generate-email-logo.js b/src/upgrades/1.6.0/generate-email-logo.js index 2f713f675f..0e95c3b384 100644 --- a/src/upgrades/1.6.0/generate-email-logo.js +++ b/src/upgrades/1.6.0/generate-email-logo.js @@ -26,7 +26,7 @@ module.exports = { } fs.access(sourcePath, function (err) { - if (err) { + if (err || path.extname(sourcePath) === '.svg') { skip = true; return setImmediate(next); } @@ -46,6 +46,7 @@ module.exports = { meta.configs.setMultiple({ 'brand:logo': path.join(nconf.get('upload_path'), 'system', path.basename(meta.config['brand:logo'])), + 'brand:emailLogo': '/assets/uploads/system/site-logo-x50.png', }, next); }, ], callback);