{"agent":"claude","input":"This project fails after a Mongoose upgrade with: MongooseError: Model.find() no longer accepts a callback. Port it to promises. Read package.json, the lock file, the CI workflow and any Docker files; report the Mongoose range, the Node version CI uses, and the MongoDB version the project runs against. Find every Mongoose call that takes a callback: model and query methods (find, findOne, findById, save, deleteMany, updateOne, countDocuments, exec and the rest), including calls that pass a named function or a bound handler, and connection calls. List them by file with a count. Start a local MongoDB without Docker (mongodb-memory-server is fine) and run the test suite on the current Mongoose for a baseline; then install the target Mongoose and run it again, quoting the first error and the summary. Rewrite each call with async/await. Keep every outcome the callback produced: the same status codes, response bodies, and arguments to done or next. Each callback-style wrapper (Passport verify functions, middleware) must still call its callback exactly once. Where the old code started several operations without waiting, or could call a callback twice, choose an explicit order, and list each such place. Do not wrap Mongoose in a helper that reinstates callbacks. Target the newest Mongoose major the CI Node version supports, and say what the next major would need. Run the suite again and open a pull request with the three summaries and the list of call sites.","resources":[{"url":"https://github.com/your-org/your-app"}]}