mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Add session id SessionData
This commit is contained in:
parent
9eca4566bf
commit
9b6288e49c
3 changed files with 32 additions and 5 deletions
|
|
@ -173,7 +173,8 @@ Meteor.publish('dueCards', function(allUsers = false) {
|
|||
];
|
||||
});
|
||||
|
||||
Meteor.publish('globalSearch', function(queryParams) {
|
||||
Meteor.publish('globalSearch', function(sessionId, queryParams) {
|
||||
check(sessionId, String);
|
||||
check(queryParams, Object);
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
@ -199,7 +200,7 @@ Meteor.publish('globalSearch', function(queryParams) {
|
|||
});
|
||||
}
|
||||
|
||||
SessionData.upsert({ userId: this.userId }, update);
|
||||
SessionData.upsert({ userId: this.userId, sessionId }, update);
|
||||
|
||||
const boards = [];
|
||||
const swimlanes = [];
|
||||
|
|
@ -236,7 +237,7 @@ Meteor.publish('globalSearch', function(queryParams) {
|
|||
Swimlanes.find({ _id: { $in: swimlanes } }, { fields }),
|
||||
Lists.find({ _id: { $in: lists } }, { fields }),
|
||||
Users.find({ _id: { $in: users } }, { fields: Users.safeFields }),
|
||||
SessionData.find({ userId: this.userId }),
|
||||
SessionData.find({ userId: this.userId, sessionId }),
|
||||
];
|
||||
|
||||
if (cards) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue