Procházet zdrojové kódy

Remove newItemIndex of Checklist Collection from migration script

We no longer need this field
Ghassen Rjab před 7 roky
rodič
revize
6e5d9f9bb6
1 změnil soubory, kde provedl 1 přidání a 6 odebrání
  1. 1 6
      server/migrations.js

+ 1 - 6
server/migrations.js

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