mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 09:50:15 +01:00
- Removed the export of models from the database connection module to simplify the structure. - Updated various files to import models directly from the new centralized models module. - Ensured consistency across the codebase by replacing mongoose model references with the new import paths.
8 lines
254 B
JavaScript
8 lines
254 B
JavaScript
const mongoose = require('mongoose');
|
|
const { createModels } = require('@librechat/data-schemas');
|
|
const { connectDb } = require('./connect');
|
|
const indexSync = require('./indexSync');
|
|
|
|
createModels(mongoose);
|
|
|
|
module.exports = { connectDb, indexSync };
|