Skip to content
Snippets Groups Projects
Unverified Commit d4f6eb94 authored by Heitor Tanoue's avatar Heitor Tanoue Committed by Diego Sampaio
Browse files

fix: Engagement dashboard crash on Users tab (#28131)

parent d8237bfd
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ export class MessagesRaw extends BaseRaw<IMessage> implements IMessagesModel {
if (options.count) {
params.push({ $limit: options.count });
}
return this.col.aggregate(params, { readPreference: readSecondaryPreferred() }).toArray();
return this.col.aggregate(params, { allowDiskUse: true, readPreference: readSecondaryPreferred() }).toArray();
}
findLivechatClosedMessages(rid: IRoom['_id'], searchTerm?: string, options?: FindOptions<IMessage>): FindPaginated<FindCursor<IMessage>> {
......
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