Test not passing no matter what

Tell us what’s happening:
Can someone help me with this issue. It won’t pass the test with anything I’ve tried so far. Sometimes it just prints the iconic [object Object] in the logs and that is it. I tried many different methods but none actually passed the test. I took code from the official hint, the forum, stackoverflow and the official wiki. Tried everything I could find and it just won’t work. Help would be kindly appreciated.

Your code so far

 var findPeopleByName = function(personName, done) {
      Person.find({name: personName}, function(err, data){
          if(err) return console.log(err);
      done(null, data);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

Challenge: Use model.find() to Search Your Database

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


What do the failing tests say?

Find all items corresponding to a criteria should succeed