mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
fix if userId in _meteorSession is undefined
This commit is contained in:
parent
ba9e2debe2
commit
68610e5066
1 changed files with 9 additions and 10 deletions
|
@ -117,16 +117,15 @@ I20221023-09:15:09.602(3)? at packages/ddp-server/livedata_server.js:1496:18
|
|||
|
||||
// update last connected user date (needed for one of the KPI)
|
||||
Meteor.server.stream_server.open_sockets.forEach(
|
||||
(socket) =>
|
||||
//console.log('meteor session', socket._meteorSession.userId),
|
||||
socket !== undefined &&
|
||||
socket._meteorSession?.userId !== null &&
|
||||
Users.update(socket._meteorSession.userId, {
|
||||
$set: {
|
||||
lastConnectionDate: new Date(),
|
||||
},
|
||||
}),
|
||||
);
|
||||
(socket) => {
|
||||
if (socket?._meteorSession?.userId) {
|
||||
Users.update(socket._meteorSession.userId, {
|
||||
$set: {
|
||||
lastConnectionDate: new Date(),
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue