What's wrong with API's and Microservices Certification #7?

Tell us what’s happening:
Describe your issue in detail here.
My code looks correct. I even checked it against the hint and it’s the same but I keep getting the message “Find an item by Id should succeed”.

const findPersonById = (personId, done) => {
Person.findById(personId, (err, data) => {
if(err) return done(err);
done(null, data);
});
};

Your project link(s)

solution: https://replit.com/@igadget777/boilerplate-mongomongoose

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Use model.findById() to Search Your Database By _id

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.