mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 17:48:49 +01:00
Pass found cards in sessionData cursor
This commit is contained in:
parent
dd163b9923
commit
907bf4ffdc
7 changed files with 137 additions and 80 deletions
|
|
@ -112,7 +112,7 @@ function commentCreation(userId, doc) {
|
|||
|
||||
CardComments.textSearch = (userId, textArray) => {
|
||||
const selector = {
|
||||
boardId: { $in: Boards.userBoardIds() },
|
||||
boardId: { $in: Boards.userBoardIds(userId) },
|
||||
$and: [],
|
||||
};
|
||||
|
||||
|
|
@ -121,9 +121,12 @@ CardComments.textSearch = (userId, textArray) => {
|
|||
}
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(textArray);
|
||||
console.log('cardComments selector:', selector);
|
||||
|
||||
return CardComments.find(selector);
|
||||
const comments = CardComments.find(selector);
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('count:', comments.count());
|
||||
return comments;
|
||||
};
|
||||
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue