This commit is contained in:
Julian Lam
2017-10-03 09:40:52 -04:00
parent b70f328520
commit 2086a64a5e

View File

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