소스 검색

Remove newItemIndex of Checklist Collection from migration script

We no longer need this field
Ghassen Rjab 7 년 전
부모
커밋
6e5d9f9bb6
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  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
       );
     }