diff --git a/migrations/20170928_redesign_launch.js b/migrations/20170928_redesign_launch.js index 3ff9970d83..1139652050 100644 --- a/migrations/20170928_redesign_launch.js +++ b/migrations/20170928_redesign_launch.js @@ -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', diff --git a/website/common/script/ops/pinnedGearUtils.js b/website/common/script/ops/pinnedGearUtils.js index 9aa0e2eef7..49d4ff473c 100644 --- a/website/common/script/ops/pinnedGearUtils.js +++ b/website/common/script/ops/pinnedGearUtils.js @@ -179,5 +179,6 @@ module.exports = { removePinnedItemsByOwnedGear, togglePinnedItem, removeItemByPath, + selectGearToPin, isPinned, };