chore: Update res.json(code, json) to res.status(code).json(json)
This commit is contained in:
@@ -2,7 +2,7 @@ module.exports.siteVersion = 1;
|
||||
|
||||
module.exports.middleware = function(req, res, next){
|
||||
if(req.query.siteVersion && req.query.siteVersion != module.exports.siteVersion){
|
||||
return res.json(400, {needRefresh: true});
|
||||
return res.status(400).json({needRefresh: true});
|
||||
}
|
||||
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user