assisweb 8.0.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
const mongoose = require('mongoose')
|
2
2
|
|
3
3
|
|
4
|
-
mongoose.connect("mongodb+srv://Assis:200420082018@cluster0.el3tr.mongodb.net/myFirstDatabase?retryWrites=true&w=majority").then(() => {
|
4
|
+
mongoose.connect("mongodb+srv://Assis:200420082018@cluster0.el3tr.mongodb.net/myFirstDatabase?retryWrites=true&w=majority",{useNewUrlParser: true, useUnifiedTopology:true}).then(() => {
|
5
5
|
|
6
6
|
}).catch(err => {
|
7
7
|
console.log(err)
|