Fix lint errors

This commit is contained in:
Andrés Manelli 2018-04-18 02:37:20 -03:00
parent 37306c8d22
commit fb75a487fc
3 changed files with 10 additions and 13 deletions

View file

@ -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);