mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Remove old session data
This commit is contained in:
parent
20ab2f039b
commit
f2e7296d19
1 changed files with 13 additions and 1 deletions
|
|
@ -547,7 +547,19 @@ Meteor.publish('globalSearch', function(sessionId, queryParams) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SessionData.upsert({ userId: this.userId, sessionId }, update);
|
SessionData.upsert({ userId, sessionId }, update);
|
||||||
|
|
||||||
|
// remove old session data
|
||||||
|
SessionData.remove({
|
||||||
|
userId,
|
||||||
|
modifiedAt: {
|
||||||
|
$lt: new Date(
|
||||||
|
moment()
|
||||||
|
.subtract(1, 'day')
|
||||||
|
.format(),
|
||||||
|
),
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (cards) {
|
if (cards) {
|
||||||
const boards = [];
|
const boards = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue