Commit 07e301c0 authored by Рахметова Альбина's avatar Рахметова Альбина

Merge branch '#18' into 'dev'

fixed reference to Mongo base

See merge request !19
parents b291f9ec ddf690fb
MONGO_URL='mongodb://localhost:27017' MONGO_URL=mongodb://localhost/myForum
PORT='8002' PORT=8002
\ No newline at end of file \ No newline at end of file
*
!.gitignore
\ No newline at end of file
...@@ -20,7 +20,7 @@ export class Mongo implements IDataBase { ...@@ -20,7 +20,7 @@ export class Mongo implements IDataBase {
} }
public async init(): Promise<void> { public async init(): Promise<void> {
this.client = await mongoose.connect(process.env.MONGO_CLIENT_URL || 'mongodb://localhost/myStore') this.client = await mongoose.connect(process.env.MONGO_CLIENT_URL || 'mongodb://localhost/myForum')
console.log('Mongo mongoose is connected') console.log('Mongo mongoose is connected')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment