summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/boards.js b/models/boards.js
index e3d82fc9..11df0bb5 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -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 } };