mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Refactor imported -> linked in models
This commit is contained in:
parent
bce2242528
commit
6adfcb3513
3 changed files with 102 additions and 102 deletions
|
|
@ -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 } };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue