diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 3757552b54..15f924a3a1 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -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; diff --git a/script/index.coffee b/script/index.coffee index 18d4ccd6b6..2b081ba89c 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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