Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GhassenRjab committed Sep 23, 2017
1 parent 6921452 commit 20ba743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/migrations.js
Expand Up @@ -140,16 +140,16 @@ Migrations.add('add-sort-checklists', () => {
$set: {
sort: index,
newItemIndex: checklist.items.length,
}
},
},
noValidate
);
}
checklist.items.forEach(function(item, index) {
if (!item.hasOwnProperty('sort')) {
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
);
}
Expand Down

0 comments on commit 20ba743

Please sign in to comment.