refactor: reuse vite's websocket

This commit is contained in:
Arash Sheyda
2023-06-18 12:20:57 +03:00
parent 2ba8bdadfc
commit aaef56cb29
9 changed files with 122 additions and 100 deletions

View File

@ -11,7 +11,7 @@ export async function defineMongooseConnection({ uri, options }: { uri?: string;
try {
await mongoose.connect(mongooseUri, { ...mongooseOptions })
logger.info('Connected to mongoose database')
logger.info('Connected to MONGODB')
}
catch (err) {
logger.error('Error connecting to database', err)