[mongo+mongoose] Test won't pass on model.findOne() lesson

I am on this lesson.

Following is my code for the lesson:

const findOneByFood = (food, done) => {
  Person.findOne({ favoriteFoods: food }, function (err, data) {
    if (err) {
      return done(err);
    }
    return done(null, data);
  });
};

But my test still fails:

image

Please help me make this test pass. What am I missing?

If anyone is able to pass this test then please help me understand the problem.

try this code ! this works for me.

const findOneByFood = (food, done) => {
  
  Person.findOne({ favoriteFoods: food }, (error, data) => {
    if (error) {
      return console.error(error);
  }else  done(null, data)
  })

};