Skip to content
Snippets Groups Projects
Unverified Commit 83d92701 authored by Henrique Guimarães Ribeiro's avatar Henrique Guimarães Ribeiro Committed by GitHub
Browse files

regression: Fix new user panel memory exceeded error (#32696)

parent 0f7e52ba
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Added the allowDiskUse option to the users page queries so that if the mongodb memory threshold is exceeded it will use disk space instead of throwing an error.
......@@ -205,6 +205,7 @@ export async function findPaginatedUsersByStatus({
skip: offset,
limit: count,
projection,
allowDiskUse: true,
},
);
const [users, total] = await Promise.all([cursor.toArray(), totalCount]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment