@librechat/data-schemas 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -92,6 +92,7 @@ async function loadDefaultInterface({ config, configDefaults, }) {
|
|
|
92
92
|
fileCitations: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.fileCitations,
|
|
93
93
|
peoplePicker: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.peoplePicker,
|
|
94
94
|
marketplace: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.marketplace,
|
|
95
|
+
remoteAgents: interfaceConfig === null || interfaceConfig === void 0 ? void 0 : interfaceConfig.remoteAgents,
|
|
95
96
|
});
|
|
96
97
|
return loadedInterface;
|
|
97
98
|
}
|
|
@@ -3002,9 +3003,11 @@ const createMeiliMongooseModel = ({ index, attributesToIndex, syncOptions, }) =>
|
|
|
3002
3003
|
try {
|
|
3003
3004
|
// Add documents to MeiliSearch
|
|
3004
3005
|
await index.addDocumentsInBatches(formattedDocs);
|
|
3005
|
-
// Update MongoDB to mark documents as indexed
|
|
3006
|
+
// Update MongoDB to mark documents as indexed.
|
|
3007
|
+
// { timestamps: false } prevents Mongoose from touching updatedAt, preserving
|
|
3008
|
+
// original conversation/message timestamps (fixes sidebar chronological sort).
|
|
3006
3009
|
const docsIds = documents.map((doc) => doc._id);
|
|
3007
|
-
await this.updateMany({ _id: { $in: docsIds } }, { $set: { _meiliIndex: true } });
|
|
3010
|
+
await this.updateMany({ _id: { $in: docsIds } }, { $set: { _meiliIndex: true } }, { timestamps: false });
|
|
3008
3011
|
}
|
|
3009
3012
|
catch (error) {
|
|
3010
3013
|
logger.error('[processSyncBatch] Error processing batch:', error);
|