mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
Fix lint errors
This commit is contained in:
parent
37306c8d22
commit
fb75a487fc
3 changed files with 10 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue