backport composer route crash fix

This commit is contained in:
Barış Soner Uşaklı
2017-11-23 18:59:18 -05:00
committed by GitHub
parent 6cbeff34ea
commit 97ac4a2e8c

View File

@@ -10,13 +10,13 @@ var helpers = require('./helpers');
exports.get = function (req, res, next) {
async.waterfall([
function (next) {
function (_next) {
plugins.fireHook('filter:composer.build', {
req: req,
res: res,
next: next,
templateData: {},
}, next);
}, _next);
},
function (data) {
if (data.templateData.disabled) {