mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
use selectGearToPin instead of updateStore in migration-script (#9102)
This commit is contained in:
parent
3d75c99f8d
commit
d977656e96
2 changed files with 4 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -179,5 +179,6 @@ module.exports = {
|
|||
removePinnedItemsByOwnedGear,
|
||||
togglePinnedItem,
|
||||
removeItemByPath,
|
||||
selectGearToPin,
|
||||
isPinned,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue