mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
process.env is an object
This commit is contained in:
@@ -118,7 +118,7 @@ Controllers.register = function(req, res, next) {
|
|||||||
data.error = req.flash('error')[0];
|
data.error = req.flash('error')[0];
|
||||||
|
|
||||||
plugins.fireHook('filter:register.build', {req: req, res: res, templateData: data}, function(err, data) {
|
plugins.fireHook('filter:register.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||||
if (err && process.env === 'development') {
|
if (err && global.env === 'development') {
|
||||||
winston.warn(JSON.stringify(err));
|
winston.warn(JSON.stringify(err));
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user