Skip to content

Commit 9cdc317

Browse files
Update backend/app/groups/service.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 57d2253 commit 9cdc317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/groups/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def _enrich_members_with_user_details(
6262
"imageUrl": 1,
6363
}, # Project only needed fields
6464
)
65-
users_list = await users_cursor.to_list(length=100)
65+
users_list = await users_cursor.to_list(length=len(user_ids))
6666

6767
# Create fast lookup dictionary: O(1) access per member
6868
users_map = {str(user["_id"]): user for user in users_list}

0 commit comments

Comments
 (0)