mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
- Updated import paths for connectDb across various files to use the new centralized connect module. - Removed the old connectDb file to streamline the database connection logic. - Ensured all tests and models reference the new connection method for consistency.
8 lines
280 B
JavaScript
8 lines
280 B
JavaScript
const mongoose = require('mongoose');
|
|
const { createModels } = require('@librechat/data-schemas');
|
|
const { connectDb } = require('./connect');
|
|
const indexSync = require('./indexSync');
|
|
|
|
const models = createModels(mongoose);
|
|
|
|
module.exports = { connectDb, indexSync, ...models };
|