🔄 refactor(config): Move connectWithTimeout Outside of Helpers Module (#1513)

This commit is contained in:
Danny Avila 2024-01-07 14:43:27 -05:00 committed by GitHub
parent 9144680ffb
commit 050a92b318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 40 deletions

View file

@ -1,11 +1,12 @@
const path = require('path');
require('module-alias')({ base: path.resolve(__dirname, '..', 'api') });
const { registerUser } = require('~/server/services/AuthService');
const { askQuestion, silentExit, connectWithTimeout } = 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