TehRiehlDeal e5fe8568b0 Reverse counter-party balances when deleting an account
Prisma cascade on destinationAccountId silently wiped transfer rows
without running TransactionsService.remove(), leaving the surviving
account with a balance that reflected a transfer that no longer
existed. AccountsService.remove() now iterates related transfers and
reverses the counter-party delta inside the same $transaction before
deleting the account.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 15:31:10 -07:00
2026-04-12 17:13:33 -07:00
S
Description
No description provided
MIT 1.9 MiB
Languages
TypeScript 97.4%
CSS 1.1%
Dockerfile 0.7%
JavaScript 0.6%
HTML 0.1%