Unpin Regained Items from Enchanted Armoire (#9766)

This commit is contained in:
Maru de Vera
2018-01-30 05:00:19 +08:00
committed by Sabe Jones
parent 6bd90807f3
commit 23dd402e79

View File

@@ -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,