Mongoose findByIdAndUpdate Not Returning Updated Model
Mongoose findByIdAndUpdate Not Returning Updated Model: a task in Terminal-Lego-15k (Harbor dataset). You are debugging a Node.js application that uses Mongoose to interact with MongoDB. There is a bug where Model.findByIdAndUpdate() returns the original document instead of the updated document.
The task
You are debugging a Node.js application that uses Mongoose to interact with MongoDB. There is a bug where `Model.findByIdAndUpdate()` returns the original document instead of the updated document.
Part of PrimeIntellect/Terminal-Lego-15k.