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: {
|
$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 },
|
{ _id: checklist._id, 'items._id': item._id },
|
||||||
{ $set: { "items.$.sort": index } },
|
{ $set: { 'items.$.sort': index } },
|
||||||
noValidate
|
noValidate
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue