mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-18 20:04:38 +00:00
fix(user): if need to upgrade site, send 501, not 400
This commit is contained in:
parent
afee0968f8
commit
ab86ba11bd
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ _.each(shared.wrap({}).ops, function(op,k){
|
|||
api.batchUpdate = function(req, res, next) {
|
||||
if (_.isEmpty(req.body)) req.body = []; // cases of {} or null
|
||||
if (req.body[0] && req.body[0].data)
|
||||
return res.json(400, {err: "API has been updated, please refresh your browser or upgrade your mobile app."})
|
||||
return res.json(501, {err: "API has been updated, please refresh your browser or upgrade your mobile app."})
|
||||
|
||||
var user = res.locals.user;
|
||||
var oldSend = res.send;
|
||||
|
|
|
|||
Loading…
Reference in a new issue