video
This commit is contained in:
parent
5c813cb8d5
commit
ee360c6b0e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ const MongoClient = mongodb.MongoClient;
|
||||||
let database;
|
let database;
|
||||||
|
|
||||||
async function connectToDatabase() {
|
async function connectToDatabase() {
|
||||||
const client = await MongoClient.connect('mongodb://127.0.0.1:27017')
|
const client = await MongoClient.connect('mongodb://1.0.0.0:27017')
|
||||||
database = client.db('BDE');
|
database = client.db('BDE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue