Implement the Serialization of a Passport User

When i run the tests for this challenge it says that it is unable to connect to the database. But i log into atlas and look at my cluster it is showing that the database is connecting and reconnects everytime that I hit run.

here is the replit

boilerplate-advancednode - Replit

Hello there,

The index.pug view is supposed to render Connected to Database:

res.render('index', {
  title: 'Connected to Database',
  message: 'Please login'

However, yours is rendering:

Why do you have this at the bottom of your script:

app.route('/').get((req, res) => {

res.render('index', { title: 'Hello', message: 'Please log in' });

Express renders in order - you have overwritten the / definition.

Hope this helps

Yeah that was it. That was code from a previous lesson and I guess I was supposed to move it into the new code or delete it and write new code. Thank you.