Skip to content

Commit

Permalink
db credential
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur authored Jun 2, 2021
1 parent cb1f06b commit 5e32bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/db.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const mongoose = require('mongoose');

mongoose.connect('mongodb+srv://aditya:vercel@surveydb.lkwaz.mongodb.net/myFirstDatabase?retryWrites=true&w=majority', {useNewUrlParser: true}, (err) => {
mongoose.connect('mongodb+srv://aditya:vercel@surveydb.lkwaz.mongodb.net/surveyDB?retryWrites=true&w=majority', {useNewUrlParser: true}, (err) => {
if(!err) { console.log('MongoDB Connection Succeeded.') }
else { console.log('Error in DB Connection : '+ err)}
});

require('./user.model');
require('./survey.model');
require('./response.model');
require('./response.model');

1 comment on commit 5e32bdb

@vercel
Copy link

@vercel vercel bot commented on 5e32bdb Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.