mirror of
https://github.com/wekan/wekan.git
synced 2025-04-24 14:08:31 -04:00
Fix lint errors
This commit is contained in:
parent
6921452a7d
commit
20ba743f9b
1 changed files with 3 additions and 3 deletions
|
@ -140,7 +140,7 @@ Migrations.add('add-sort-checklists', () => {
|
|||
$set: {
|
||||
sort: index,
|
||||
newItemIndex: checklist.items.length,
|
||||
}
|
||||
},
|
||||
},
|
||||
noValidate
|
||||
);
|
||||
|
@ -148,8 +148,8 @@ Migrations.add('add-sort-checklists', () => {
|
|||
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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue