mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
refactor(mongoMeili.js): remove console.log statement for document not indexed
This commit is contained in:
parent
7b8036a369
commit
9cacf76c10
1 changed files with 0 additions and 1 deletions
|
|
@ -103,7 +103,6 @@ const createMeiliMongooseModel = function ({ index, attributesToIndex }) {
|
||||||
// Case: Insert
|
// Case: Insert
|
||||||
// If document does not exist in Meili Index, Its an insert case
|
// If document does not exist in Meili Index, Its an insert case
|
||||||
if (!indexMap.has(id)) {
|
if (!indexMap.has(id)) {
|
||||||
console.log(`${id} is not indexed`);
|
|
||||||
await index.addDocuments([doc]);
|
await index.addDocuments([doc]);
|
||||||
updateOps.push({
|
updateOps.push({
|
||||||
updateOne: { filter: update, update: { $set: { _meiliIndex: true } } },
|
updateOne: { filter: update, update: { $set: { _meiliIndex: true } } },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue