mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 20:19:42 +00:00
fix https://github.com/HabitRPG/habitrpg/issues/2025 - two handed
message preventing POST to server
This commit is contained in:
parent
2d568f1cf4
commit
c2a27370a1
2 changed files with 5 additions and 2 deletions
5
dist/habitrpg-shared.js
vendored
5
dist/habitrpg-shared.js
vendored
|
|
@ -11374,7 +11374,10 @@ var process=require("__browserify_process");(function() {
|
|||
user.items.gear[type][item.type] = item.key;
|
||||
message = user.fns.handleTwoHanded(item, type);
|
||||
}
|
||||
return typeof cb === "function" ? cb(message, req) : void 0;
|
||||
return cb({
|
||||
code: 200,
|
||||
message: message
|
||||
}, req);
|
||||
},
|
||||
hatch: function(req, cb) {
|
||||
var egg, hatchingPotion, pet, _ref;
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ api.wrap = (user) ->
|
|||
item = content.gear.flat[key]
|
||||
user.items.gear[type][item.type] = item.key
|
||||
message = user.fns.handleTwoHanded(item,type)
|
||||
cb? message, req
|
||||
cb {code:200,message}, req
|
||||
|
||||
hatch: (req, cb) ->
|
||||
{egg, hatchingPotion} = req.params
|
||||
|
|
|
|||
Loading…
Reference in a new issue