← All field notes
Two people editing the same budget
- Problem
- When two people saved at once, budgets and contracts could overwrite each other. The server also trusted totals sent from the browser.
- Fix
- I added transactions and row locks, moved the totals to the server, and checked every cost code against the budget.
- Stack
- PostgreSQL · Node.js · Concurrency