فهرست منبع

Fix lint errors

Ghassen Rjab 7 سال پیش
والد
کامیت
20ba743f9b
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      server/migrations.js

+ 3 - 3
server/migrations.js

@@ -140,7 +140,7 @@ Migrations.add('add-sort-checklists', () => {
           $set: {
           $set: {
             sort: index,
             sort: index,
             newItemIndex: checklist.items.length,
             newItemIndex: checklist.items.length,
-          }
+          },
         },
         },
         noValidate
         noValidate
       );
       );
@@ -148,8 +148,8 @@ Migrations.add('add-sort-checklists', () => {
     checklist.items.forEach(function(item, index) {
     checklist.items.forEach(function(item, index) {
       if (!item.hasOwnProperty('sort')) {
       if (!item.hasOwnProperty('sort')) {
         Checklists.direct.update(
         Checklists.direct.update(
-          { _id: checklist._id, "items._id": item._id },
-          { $set: { "items.$.sort": index } },
+          { _id: checklist._id, 'items._id': item._id },
+          { $set: { 'items.$.sort': index } },
           noValidate
           noValidate
         );
         );
       }
       }