use selectGearToPin instead of updateStore in migration-script (#9102)

This commit is contained in:
negue 2017-10-04 17:59:44 +02:00 committed by Sabe Jones
parent 3d75c99f8d
commit d977656e96
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,5 @@
var updateStore = require('../website/common/script/libs/updateStore');
import { selectGearToPin } from '../website/common/script/ops/pinnedGearUtils';
var getItemInfo = require('../website/common/script/libs/getItemInfo');
var migrationName = '20170928_redesign_launch.js';
@ -69,7 +70,7 @@ function updateUser (user) {
var set = {'migration': migrationName};
var oldRewardsList = updateStore(user);
var oldRewardsList = selectGearToPin(user);
var newPinnedItems = [
{
type: 'armoire',

View file

@ -179,5 +179,6 @@ module.exports = {
removePinnedItemsByOwnedGear,
togglePinnedItem,
removeItemByPath,
selectGearToPin,
isPinned,
};