refactor(config): update user-related imports to utilize mongoose models

This commit is contained in:
Danny Avila 2025-05-30 14:54:32 -04:00
parent 226bd90ede
commit 9c0deed34a
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
11 changed files with 22 additions and 11 deletions

View file

@ -1,5 +1,6 @@
const path = require('path');
const { User } = require('@librechat/data-schemas');
const mongoose = require('mongoose');
const { User } = require('@librechat/data-schemas').createModels(mongoose);
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
const { registerUser } = require('~/server/services/AuthService');
const { askQuestion, silentExit } = require('./helpers');