summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-18 02:37:20 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-11 00:14:13 +0200
commitfb75a487fcde4f04a371a5ed097ba97cc7134c24 (patch)
treea0c97dd2ccd950ed974ce602f640775299cb1cf4 /models/boards.js
parent37306c8d2244c33aa924de375f2e17f438117d54 (diff)
downloadwekan-fb75a487fcde4f04a371a5ed097ba97cc7134c24.tar.gz
wekan-fb75a487fcde4f04a371a5ed097ba97cc7134c24.tar.bz2
wekan-fb75a487fcde4f04a371a5ed097ba97cc7134c24.zip
Fix lint errors
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/models/boards.js b/models/boards.js
index a37981e0..e3d82fc9 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -323,7 +323,7 @@ Boards.helpers({
searchCards(term, excludeImported) {
check(term, Match.OneOf(String, null, undefined));
- let query = { boardId: this._id };
+ const query = { boardId: this._id };
if (excludeImported) {
query.importedId = null;
}
@@ -333,9 +333,9 @@ Boards.helpers({
const regex = new RegExp(term, 'i');
query.$or = [
- { title: regex },
- { description: regex },
- ];
+ { title: regex },
+ { description: regex },
+ ];
}
return Cards.find(query, projection);