mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🔄 refactor(config): Move connectWithTimeout Outside of Helpers Module (#1513)
This commit is contained in:
parent
9144680ffb
commit
050a92b318
7 changed files with 47 additions and 40 deletions
|
|
@ -1,10 +1,11 @@
|
|||
const path = require('path');
|
||||
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
|
||||
const { connectWithTimeout, askQuestion, silentExit } = require('./helpers');
|
||||
const { askQuestion, silentExit } = require('./helpers');
|
||||
const User = require('~/models/User');
|
||||
const connect = require('./connect');
|
||||
|
||||
(async () => {
|
||||
await connectWithTimeout();
|
||||
await connect();
|
||||
|
||||
/**
|
||||
* Show the welcome / help menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue