summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorIgnatz <computer-freak94@gmx.de>2018-05-18 10:24:51 +0200
committerIgnatz <computer-freak94@gmx.de>2018-05-18 10:24:51 +0200
commitd6cfac0122dc5e6819c82f73c728488e0600cb70 (patch)
tree4f392116329e8e7cbd8e679837ce90fa7f5a0ee3 /models/cards.js
parentc1d2e27c092f9bce4a9982d6b714b442dbf66a4b (diff)
downloadwekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.tar.gz
wekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.tar.bz2
wekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.zip
linter corrections
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/models/cards.js b/models/cards.js
index 8b917ee3..d3a741bb 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -51,10 +51,10 @@ Cards.attachSchema(new SimpleSchema({
type: String,
},
value: {
- type: Match.OneOf(String,Number,Boolean,Date),
+ type: Match.OneOf(String, Number, Boolean, Date),
optional: true,
},
- })
+ }),
},
dateLastActivity: {
type: Date,
@@ -225,9 +225,9 @@ Cards.helpers({
_id: customField._id,
value: customField.value,
definition: definitions.find((definition) => {
- return definition._id == customField._id;
- })
- }
+ return definition._id === customField._id;
+ }),
+ };
});
},
@@ -331,10 +331,13 @@ Cards.mutations({
// todo
const index = this.customFieldIndex(customFieldId);
if (index > -1) {
- var update = {$set: {}};
- update.$set["customFields." + index + ".value"] = value;
+ const update = {$set: {}};
+ update.$set['customFields.${index}.value'] = value;
return update;
}
+ // TODO
+ // Ignatz 18.05.2018: Return null to silence ESLint. No Idea if that is correct
+ return null;
},
setCover(coverId) {