removed parallel

v1.18.x
barisusakli 10 years ago
parent 29c9b2e69f
commit 8e74d8f4fa

@ -179,16 +179,14 @@ module.exports = function(Meta) {
}; };
Meta.js.commitToFile = function() { Meta.js.commitToFile = function() {
async.parallel([ fs.writeFile(path.join(__dirname, '../../public/nodebb.min.js'), Meta.js.cache, function (err) {
async.apply(fs.writeFile, path.join(__dirname, '../../public/nodebb.min.js'), Meta.js.cache) if (err) {
], function (err) {
if (!err) {
winston.verbose('[meta/js] Client-side minfile committed to disk.');
emitter.emit('meta:js.compiled');
} else {
winston.error('[meta/js] ' + err.message); winston.error('[meta/js] ' + err.message);
process.exit(0); process.exit(0);
} }
winston.verbose('[meta/js] Client-side minfile committed to disk.');
emitter.emit('meta:js.compiled');
}); });
}; };

Loading…
Cancel
Save