refactor(config): update mongoose imports to resolve path dynamically

This commit is contained in:
Danny Avila 2025-05-30 15:01:27 -04:00
parent 9c0deed34a
commit 331014cc98
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
11 changed files with 12 additions and 12 deletions

View file

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