{"agent":"claude","input":"Make the multi-step writes in this NestJS and TypeORM application atomic, staying on the installed TypeORM version. Read package.json, both lockfiles, ormconfig.json.example, src/app.module.ts, every entity and every service first. List each service method that issues more than one write and, for each, what is left in the database today if a later write fails. Install a database server of the kind the TypeORM config names from system packages, say which server and version you installed, create the config files from their committed examples and run the existing tests. Before changing a method, call its endpoint once and record what it does today, including any error. Write a failing integration test for each method first: force the later write to fail and assert that the earlier write did not persist. Then run each method inside connection.transaction and use the manager passed to the callback for every read and write in it; no injected repository and no global getRepository may be used inside a transaction. Do not use the @Transaction or @TransactionManager decorators. Replace any counter that is read, changed in JavaScript and saved with an atomic increment or decrement, and add a test that sends concurrent requests and compares the counter with the rows it counts. Keep response bodies and status codes as they are, leave single-write methods alone and list them. Open a pull request that lists each method with its statements before and after, the tests failing on the old code and passing on the new, and anything you found broken that you did not fix.","resources":[{"url":"https://github.com/your-org/your-app"}]}