Skip to content

Commit ba58969

Browse files
shivamsouravjhaEraKin575
authored andcommitted
update:log and mongo connect
Signed-off-by: EraKin575 <tejaskumar574@gmail.com>
1 parent 504f344 commit ba58969

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const mongoose = require('mongoose');
22

3-
mongoose.connect('mongodb://127.0.0.1:27017/Students') // when using natively
4-
// mongoose.connect('mongodb://mongoDb:27017/Students') // When using with docker
3+
// mongoose.connect('mongodb://127.0.0.1:27017/Students') // when using natively
4+
mongoose.connect('mongodb://mongoDb:27017/Students') // When using with docker
55
.then(() => console.log("Connected to MongoDB"))
66
.catch(err=>console.error(`Error connecting to mongoDB ${err}`));

express-mongoose/src/routes/routes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ router.post('/post', async (req, res) => {
8383
})
8484
.then((response) => {
8585
data = response.data
86-
console.log(response.data);
8786
})
8887
.catch((error) => {
8988
console.error(error);

0 commit comments

Comments
 (0)