We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3f1e0 commit 3391f0dCopy full SHA for 3391f0d
1 file changed
apps/meteor/server/modules/streamer/publication-user-cache.ts
@@ -3,7 +3,10 @@ import { Users } from '@rocket.chat/models';
3
4
import type { IPublication } from './types';
5
6
-type CacheEntry = { user: Pick<IUser, '_id' | 'roles'>; timeout: NodeJS.Timeout };
+type CacheEntry = {
7
+ user: IUser; // Pick<IUser, '_id' | 'roles'>
8
+ timeout: NodeJS.Timeout;
9
+};
10
11
const CACHE_PROJECTION = { _id: 1, roles: 1 } as const;
12
const CACHE_TIMEOUT = 1000 * 60;
0 commit comments