mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-13 20:57:24 +01:00
Unpin Regained Items from Enchanted Armoire (#9766)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
import randomVal from '../libs/randomVal';
|
||||
import { removeItemByPath } from './pinnedGearUtils';
|
||||
|
||||
// TODO this is only used on the server
|
||||
// move out of common?
|
||||
@@ -56,6 +57,8 @@ module.exports = function buyArmoire (user, req = {}, analytics) {
|
||||
user.flags.armoireEmpty = true;
|
||||
}
|
||||
|
||||
removeItemByPath(user, `gear.flat.${drop.key}`);
|
||||
|
||||
armoireResp = {
|
||||
type: 'gear',
|
||||
dropKey: drop.key,
|
||||
|
||||
Reference in New Issue
Block a user