summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
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);