chore: unplug meilisearch, add leading option to throttle

This commit is contained in:
Daniel Avila 2023-03-20 00:48:16 -04:00
parent 4cd0ff2682
commit b0936fa322
4 changed files with 14 additions and 14 deletions

View file

@ -55,12 +55,12 @@ const convoSchema = mongoose.Schema(
{ timestamps: true }
);
convoSchema.plugin(mongoMeili, {
host: process.env.MEILI_HOST,
apiKey: process.env.MEILI_KEY,
indexName: 'convos', // Will get created automatically if it doesn't exist already
primaryKey: 'conversationId'
});
// convoSchema.plugin(mongoMeili, {
// host: process.env.MEILI_HOST,
// apiKey: process.env.MEILI_KEY,
// indexName: 'convos', // Will get created automatically if it doesn't exist already
// primaryKey: 'conversationId'
// });
const Conversation =
mongoose.models.Conversation || mongoose.model('Conversation', convoSchema);