Remove newItemIndex of Checklist Collection from migration script

We no longer need this field
This commit is contained in:
Ghassen Rjab 2017-09-24 02:09:21 +01:00
parent 5f697eac05
commit 6e5d9f9bb6

View file

@ -136,12 +136,7 @@ Migrations.add('add-sort-checklists', () => {
if (!checklist.hasOwnProperty('sort')) {
Checklists.direct.update(
checklist._id,
{
$set: {
sort: index,
newItemIndex: checklist.items.length,
},
},
{ $set: { sort: index } },
noValidate
);
}