summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-05-02 14:20:55 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-11 00:16:31 +0200
commit6adfcb35138259c5969e63d20a68cd6f9e8c393c (patch)
tree5292cdbfecdaa74a03c304bde4e05c838666f476 /models/boards.js
parentbce22425280248eda01132ccc58c9f5beefb712a (diff)
downloadwekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.tar.gz
wekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.tar.bz2
wekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.zip
Refactor imported -> linked in models
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 } };