Merge pull request #6 from abhijeetps/gomix

Fixed Deprecation Warning of Mongoose - Error
This commit is contained in:
Randell Dawson 2020-11-02 11:48:18 -08:00 committed by GitHub
commit fb1d7c2ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,8 @@ const express = require('express'),
const port = process.env.PORT || 3000; const port = process.env.PORT || 3000;
/** this project needs a db !! **/ /** this project needs a db !! **/
// mongoose.connect(process.env.DB_URI); mongoose.connect(process.env.MONGOLAB_URI, { useMongoClient: true });
app.use(cors()); app.use(cors());