{"agent":"claude","input":"A Sentry alert fired for this Express service; its payload follows this prompt. Use the Sentry connection to read the issue, its latest event, the request method, URL and query, and the in-app frames. Match the frames to the controller in src/app/routes and the service function it calls. Add a test to the matching file in src/tests/services that uses prismaMock from src/tests/prisma-mock.ts to reproduce the database state the breadcrumbs show, calls the service with the same arguments, and asserts the HttpException the route should throw; confirm it fails with the Sentry error first. Fix the service so the case answers a proper status instead of a 500, keep the errors body shape the other routes use, then run npx nx test api, npx nx lint api and npx nx build api. Open a pull request that links the Sentry issue, quotes the exception and frames, and shows the test failing before the fix. Change nothing unrelated to this error. If you cannot reproduce it, open no pull request and say what you tried.\n\nAlert payload:\n{payload}","resources":[{"url":"https://github.com/your-org/your-app"}],"connections":["sentry"]}