Browse Source

Remove newItemIndex of Checklist Collection from migration script

We no longer need this field
Ghassen Rjab 7 years ago
parent
commit
6e5d9f9bb6
1 changed files with 1 additions and 6 deletions
  1. 1 6
      server/migrations.js

+ 1 - 6
server/migrations.js

@@ -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
       );
     }