From f33389952aa0cbf257afff995a1476000c863c50 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Thu, 9 Nov 2023 17:06:28 -0300 Subject: [PATCH] chore: remove duplicated index --- apps/meteor/server/models/raw/LivechatRooms.ts | 1 - apps/meteor/server/models/raw/Rooms.ts | 3 --- apps/meteor/server/models/raw/Subscriptions.ts | 1 - apps/meteor/server/models/raw/Users.js | 1 - 4 files changed, 6 deletions(-) diff --git a/apps/meteor/server/models/raw/LivechatRooms.ts b/apps/meteor/server/models/raw/LivechatRooms.ts index 974c2b5cb570..94adf40569fd 100644 --- a/apps/meteor/server/models/raw/LivechatRooms.ts +++ b/apps/meteor/server/models/raw/LivechatRooms.ts @@ -51,7 +51,6 @@ export class LivechatRoomsRaw extends BaseRaw implements ILive { key: { 'omnichannel.predictedVisitorAbandonmentAt': 1 }, sparse: true }, { key: { closedAt: 1 }, sparse: true }, { key: { servedBy: 1 }, sparse: true }, - { key: { 'v.token': 1 }, sparse: true }, { key: { 'v.token': 1, 'email.thread': 1 }, sparse: true }, { key: { 'v._id': 1 }, sparse: true }, { key: { t: 1, departmentId: 1, closedAt: 1 }, partialFilterExpression: { closedAt: { $exists: true } } }, diff --git a/apps/meteor/server/models/raw/Rooms.ts b/apps/meteor/server/models/raw/Rooms.ts index 8b8a6637284c..536719c5983a 100644 --- a/apps/meteor/server/models/raw/Rooms.ts +++ b/apps/meteor/server/models/raw/Rooms.ts @@ -53,9 +53,6 @@ export class RoomsRaw extends BaseRaw implements IRoomsModel { key: { muted: 1 }, sparse: true, }, - { - key: { t: 1 }, - }, { key: { 'u._id': 1 }, }, diff --git a/apps/meteor/server/models/raw/Subscriptions.ts b/apps/meteor/server/models/raw/Subscriptions.ts index a7b9bb347511..72a91e6ab17c 100644 --- a/apps/meteor/server/models/raw/Subscriptions.ts +++ b/apps/meteor/server/models/raw/Subscriptions.ts @@ -60,7 +60,6 @@ export class SubscriptionsRaw extends BaseRaw implements ISubscri { key: { 'userHighlights.0': 1 }, sparse: true }, { key: { prid: 1 } }, { key: { 'u._id': 1, 'open': 1, 'department': 1 } }, - { key: { rid: 1 } }, { key: { rid: 1, ls: 1 } }, ]; } diff --git a/apps/meteor/server/models/raw/Users.js b/apps/meteor/server/models/raw/Users.js index c8cee8f2f6bf..5b399323f143 100644 --- a/apps/meteor/server/models/raw/Users.js +++ b/apps/meteor/server/models/raw/Users.js @@ -56,7 +56,6 @@ export class UsersRaw extends BaseRaw { { key: { lastLogin: 1 } }, { key: { status: 1 } }, { key: { statusText: 1 } }, - { key: { active: 1 }, sparse: 1 }, { key: { statusConnection: 1 }, sparse: 1 }, { key: { appId: 1 }, sparse: 1 }, { key: { type: 1 } },