Skip to content

Commit 3391f0d

Browse files
committed
refactor: Update CacheEntry type to include full IUser object for improved user data handling
1 parent cc3f1e0 commit 3391f0d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/meteor/server/modules/streamer/publication-user-cache.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { Users } from '@rocket.chat/models';
33

44
import type { IPublication } from './types';
55

6-
type CacheEntry = { user: Pick<IUser, '_id' | 'roles'>; timeout: NodeJS.Timeout };
6+
type CacheEntry = {
7+
user: IUser; // Pick<IUser, '_id' | 'roles'>
8+
timeout: NodeJS.Timeout;
9+
};
710

811
const CACHE_PROJECTION = { _id: 1, roles: 1 } as const;
912
const CACHE_TIMEOUT = 1000 * 60;

0 commit comments

Comments
 (0)