mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
📇 refactor(convoSchema): index updatedAt field (#1732)
This commit is contained in:
parent
f30d6bd689
commit
b151cd9911
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue