diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-05-02 14:20:55 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-08-11 00:16:31 +0200 |
commit | 6adfcb35138259c5969e63d20a68cd6f9e8c393c (patch) | |
tree | 5292cdbfecdaa74a03c304bde4e05c838666f476 /models/boards.js | |
parent | bce22425280248eda01132ccc58c9f5beefb712a (diff) | |
download | wekan-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.js | 6 |
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 } }; |