Skip to content

Commit 92110ae

Browse files
committed
Refactor info query key to remove redundant room ID from the key structure
1 parent 69fd39e commit 92110ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/client/lib/queryKeys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const roomsQueryKeys = {
99
message: (rid: IRoom['_id'], mid: IMessage['_id']) => [...roomsQueryKeys.messages(rid), mid] as const,
1010
threads: (rid: IRoom['_id']) => [...roomsQueryKeys.room(rid), 'threads'] as const,
1111
roles: (rid: IRoom['_id']) => [...roomsQueryKeys.room(rid), 'roles'] as const,
12-
info: (rid: IRoom['_id']) => [...roomsQueryKeys.room(rid), 'info', rid] as const,
12+
info: (rid: IRoom['_id']) => [...roomsQueryKeys.room(rid), 'info'] as const,
1313
};
1414

1515
export const subscriptionsQueryKeys = {

0 commit comments

Comments
 (0)