refactor(db): replace connectDb import paths and introduce new connect module

- 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.
This commit is contained in:
Danny Avila 2025-05-30 13:04:09 -04:00
parent 7cf3f98475
commit eb368fcb70
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
17 changed files with 36 additions and 42 deletions

View file

@ -1,6 +1,10 @@
import { connectDb, getModels } from '@librechat/backend/lib/db/connectDb';
import { findUser, deleteAllUserSessions } from '@librechat/data-schemas';
import { deleteMessages, deleteConvos } from '@librechat/backend/models';
import { connectDb } from '@librechat/backend/db/connect';
import {
findUser,
deleteConvos,
deleteMessages,
deleteAllUserSessions,
} from '@librechat/backend/models';
type TUser = { email: string; password: string };