mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
fix(config/scripts): Enhance User Creation and Ban Handling, Standardize Imports (#1144)
* chore: use relative imports for scripts * fix(create-user): newUser.save() now properly awaited, double-check user creation, use relative imports, catch exception * fix(ban-user): catch exception, handle case where IP is undefined, proper check of user ban on login
This commit is contained in:
parent
a2ee57568a
commit
5f3ecef575
7 changed files with 102 additions and 27 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const connectDb = require('@librechat/backend/lib/db/connectDb');
|
||||
const connectDb = require('../api/lib/db/connectDb');
|
||||
const { askQuestion, silentExit } = require('./helpers');
|
||||
const User = require('@librechat/backend/models/User');
|
||||
const Transaction = require('@librechat/backend/models/Transaction');
|
||||
const User = require('../api/models/User');
|
||||
const Transaction = require('../api/models/Transaction');
|
||||
|
||||
(async () => {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue