mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-21 13:24:16 +00:00
fix(accessories): add body accessory to user model, fixes https://github.com/HabitRPG/habitrpg/issues/3346
This commit is contained in:
parent
082ec6fe1d
commit
73b8128af9
2 changed files with 4 additions and 0 deletions
3
dist/habitrpg-shared.js
vendored
3
dist/habitrpg-shared.js
vendored
|
|
@ -12977,6 +12977,9 @@ api.wrap = function(user, main) {
|
|||
message = user.fns.handleTwoHanded(item, type, req);
|
||||
}
|
||||
}
|
||||
if (typeof user.markModified === "function") {
|
||||
user.markModified("items.gear." + type);
|
||||
}
|
||||
return typeof cb === "function" ? cb((message ? {
|
||||
code: 200,
|
||||
message: message
|
||||
|
|
|
|||
|
|
@ -653,6 +653,7 @@ api.wrap = (user, main=true) ->
|
|||
else
|
||||
user.items.gear[type][item.type] = item.key
|
||||
message = user.fns.handleTwoHanded(item,type,req)
|
||||
user.markModified? "items.gear.#{type}"
|
||||
cb? (if message then {code:200,message} else null), user.items
|
||||
|
||||
hatch: (req, cb) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue