Skip to content
Snippets Groups Projects
Unverified Commit e99d2c53 authored by Heitor Tanoue's avatar Heitor Tanoue Committed by GitHub
Browse files

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

parent a035fb53
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 { ...@@ -219,7 +219,7 @@ export class MessagesRaw extends BaseRaw<IMessage> implements IMessagesModel {
if (options.count) { if (options.count) {
params.push({ $limit: 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>> { 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