diff --git a/api/models/schema/convoSchema.js b/api/models/schema/convoSchema.js index a282287ecc..4810f68321 100644 --- a/api/models/schema/convoSchema.js +++ b/api/models/schema/convoSchema.js @@ -55,7 +55,7 @@ if (process.env.MEILI_HOST && process.env.MEILI_MASTER_KEY) { }); } -convoSchema.index({ createdAt: 1 }); +convoSchema.index({ createdAt: 1, updatedAt: 1 }); const Conversation = mongoose.models.Conversation || mongoose.model('Conversation', convoSchema);