A scalable backend server solution designed to manage and orchestrate software development bootcamps/courses from multiple schools, providing robust APIs and data storage capabilities.
2
stars
0
forks
source link
Fix findOneAndUpdate() parameter bug in BootcampController #57
[BUG] : Parameter "filter" to findOneAndUpdate() must be an object #56: Update package-lock.json and BootcampController to fix version and update findOneAndUpdate method
This pull request fixes the bug in the BootcampController where the parameter "filter" to the findOneAndUpdate() method was not being passed as an object. The fix updates the findOneAndUpdate() method call to pass the filter as an object by wrapping the filter value with curly braces. This ensures that the method works correctly and returns the updated entity. The package-lock.json file is also updated to fix the version. Fixes #56.
[BUG] : Parameter "filter" to findOneAndUpdate() must be an object #56: Update package-lock.json and BootcampController to fix version and update findOneAndUpdate method
This pull request fixes the bug in the BootcampController where the parameter "filter" to the findOneAndUpdate() method was not being passed as an object. The fix updates the findOneAndUpdate() method call to pass the filter as an object by wrapping the filter value with curly braces. This ensures that the method works correctly and returns the updated entity. The package-lock.json file is also updated to fix the version. Fixes #56.