Skip to content

Commit

Permalink
another index
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Oct 15, 2024
1 parent c810ef3 commit 56cc904
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/meteor/server/models/raw/LivechatRooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ export class LivechatRoomsRaw extends BaseRaw<IOmnichannelRoom> implements ILive
{ key: { servedBy: 1 }, sparse: true },
{ key: { 'v.token': 1, 'email.thread': 1 }, sparse: true },
{ key: { 'v._id': 1 }, sparse: true },
{ key: { 't': 1, 'fname': 1, 'servedBy._id': 1, 'onHold': 1 } }, // created with username
{ key: { 't': 1, 'ts': -1, 'servedBy._id': 1, 'onHold': 1 } },
{ key: { 't': 1, 'closedAt': -1, 'servedBy._id': 1, 'onHold': 1 } },
// { key: { 't': 1, 'fname': 1, 'servedBy._id': 1, 'onHold': 1 } }, // created with username
// { key: { 't': 1, 'ts': -1, 'servedBy._id': 1, 'onHold': 1 } },
// { key: { 't': 1, 'closedAt': -1, 'servedBy._id': 1, 'onHold': 1 } },
{ key: { 'onHold': 1, 'ts': -1, 'servedBy._id': 1, 't': 1 } },
{ key: { t: 1, departmentId: 1, closedAt: 1 }, partialFilterExpression: { closedAt: { $exists: true } } },
{ key: { source: 1 }, sparse: true },
{ key: { departmentAncestors: 1 }, sparse: true },
Expand Down

0 comments on commit 56cc904

Please sign in to comment.