mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Fix up some linting issues
This commit is contained in:
parent
4414582a35
commit
bc9e093e07
1 changed files with 4 additions and 4 deletions
|
|
@ -128,8 +128,8 @@ class TrelloCreator {
|
||||||
name: String,
|
name: String,
|
||||||
checkItems: [Match.ObjectIncluding({
|
checkItems: [Match.ObjectIncluding({
|
||||||
state: String,
|
state: String,
|
||||||
name: String
|
name: String,
|
||||||
})]
|
})],
|
||||||
})]);
|
})]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -387,7 +387,7 @@ class TrelloCreator {
|
||||||
const checklistToCreate = {
|
const checklistToCreate = {
|
||||||
cardId: this.cards[checklist.idCard],
|
cardId: this.cards[checklist.idCard],
|
||||||
title: checklist.name,
|
title: checklist.name,
|
||||||
createdAt: this._now()
|
createdAt: this._now(),
|
||||||
};
|
};
|
||||||
const checklistId = Checklists.direct.insert(checklistToCreate);
|
const checklistId = Checklists.direct.insert(checklistToCreate);
|
||||||
// Now add the items to the checklist
|
// Now add the items to the checklist
|
||||||
|
|
@ -396,7 +396,7 @@ class TrelloCreator {
|
||||||
itemsToCreate.push({
|
itemsToCreate.push({
|
||||||
_id: checklistId + itemsToCreate.length,
|
_id: checklistId + itemsToCreate.length,
|
||||||
title: item.name,
|
title: item.name,
|
||||||
isFinished: item.state == 'complete'
|
isFinished: item.state === 'complete',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
|
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue