Refactor imported -> linked in models

This commit is contained in:
Andrés Manelli 2018-05-02 14:20:55 -03:00
parent bce2242528
commit 6adfcb3513
3 changed files with 102 additions and 102 deletions

View file

@ -320,12 +320,12 @@ Boards.helpers({
return _id;
},
searchCards(term, excludeImported) {
searchCards(term, excludeLinked) {
check(term, Match.OneOf(String, null, undefined));
const query = { boardId: this._id };
if (excludeImported) {
query.importedId = null;
if (excludeLinked) {
query.linkedId = null;
}
const projection = { limit: 10, sort: { createdAt: -1 } };