This commit is contained in:
Primakov Alexandr Alexandrovich
2025-05-08 15:48:02 +03:00
parent 48167530fd
commit 95bcaf3c5e
3 changed files with 13 additions and 9 deletions

View File

@@ -2,6 +2,11 @@ import mongoose from 'mongoose'
import { mongoUrl } from './const'
console.log('=======================================================')
console.log('mongoUrl2', mongoUrl)
console.log('=======================================================')
mongoose.connect(`${mongoUrl}`).then(() => {
console.log('Подключение к MongoDB успешно')
}).catch((err) => {