mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-11 18:42:36 +01:00
refactor: original changes
This commit is contained in:
parent
fa9177180f
commit
f9c0e9853f
83 changed files with 413 additions and 505 deletions
|
|
@ -1,9 +1,9 @@
|
|||
const path = require('path');
|
||||
const { v5: uuidv5 } = require('uuid');
|
||||
const { Banner } = require('@librechat/data-schemas');
|
||||
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
|
||||
const { askQuestion, askMultiLineQuestion, silentExit } = require('./helpers');
|
||||
const connect = require('./connect');
|
||||
const db = require('~/lib/db/connectDb');
|
||||
|
||||
(async () => {
|
||||
await connect();
|
||||
|
|
@ -87,7 +87,6 @@ const db = require('~/lib/db/connectDb');
|
|||
|
||||
let result;
|
||||
try {
|
||||
const { Banner } = db.models;
|
||||
// There is always only one Banner record in the DB.
|
||||
// If a Banner exists in the DB, it will be updated.
|
||||
// If it doesn't exist, a new one will be added.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue