summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorRaoul Snyman <raoul@snyman.info>2017-03-05 13:08:53 -0700
committerRaoul Snyman <raoul@snyman.info>2017-03-05 13:08:53 -0700
commitbc9e093e07e81c75bc94277b7dd3aff9936e3c28 (patch)
treedf0d66203949e13cef11f6abfb71c44133d3598d /models
parent4414582a35e9c587fb4cb670cad13e211c1097b5 (diff)
downloadwekan-bc9e093e07e81c75bc94277b7dd3aff9936e3c28.tar.gz
wekan-bc9e093e07e81c75bc94277b7dd3aff9936e3c28.tar.bz2
wekan-bc9e093e07e81c75bc94277b7dd3aff9936e3c28.zip
Fix up some linting issues
Diffstat (limited to 'models')
-rw-r--r--models/import.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/import.js b/models/import.js
index 3385dd7d..41c2204b 100644
--- a/models/import.js
+++ b/models/import.js
@@ -128,8 +128,8 @@ class TrelloCreator {
name: String,
checkItems: [Match.ObjectIncluding({
state: String,
- name: String
- })]
+ name: String,
+ })],
})]);
}
@@ -387,7 +387,7 @@ class TrelloCreator {
const checklistToCreate = {
cardId: this.cards[checklist.idCard],
title: checklist.name,
- createdAt: this._now()
+ createdAt: this._now(),
};
const checklistId = Checklists.direct.insert(checklistToCreate);
// Now add the items to the checklist
@@ -396,7 +396,7 @@ class TrelloCreator {
itemsToCreate.push({
_id: checklistId + itemsToCreate.length,
title: item.name,
- isFinished: item.state == 'complete'
+ isFinished: item.state === 'complete',
});
});
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});