Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulasuarezp committed Apr 29, 2023
1 parent 51a8e27 commit b6329f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion restapi/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const port: number = 5000;
const metricsMiddleware: RequestHandler = promBundle({ includeMethod: true });
app.use(metricsMiddleware);

mongoose.connect(process.env.DATABASE_URL).then(() =>{
mongoose.connect('mongodb+srv://admin:[email protected]/?retryWrites=true&w=majority',
{
useNewUrlParser: true,
useUnifiedTopology: true
}).then(() =>{
console.log('Database succesfully connected!');
});

Expand Down

0 comments on commit b6329f5

Please sign in to comment.