Skip to content

Commit

Permalink
changed database connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
axelguimaraes committed Nov 13, 2023
1 parent fc2c6d6 commit f4ad253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.use(function(err, req, res, next) {
// Database connection
const mongoose = require('mongoose');

mongoose.connect('mongodb+srv://admin:[email protected]/?retryWrites=true&w=majority')
mongoose.connect('mongodb://127.0.0.1:27017/binarybanter')
.then(() => console.log('Database connected!'))
.catch(err => console.error('Error connecting to database:', err));

Expand Down

0 comments on commit f4ad253

Please sign in to comment.