whisper-money/app/Http/Controllers/Sync
Víctor Falcón 3cbe0a7879 fix(sync): make transaction creation idempotent (#38)
## Summary
- When a transaction ID is provided during sync, check if it already
exists before creating
- If it exists, return the existing transaction with 200 status instead
of failing with duplicate key error
- Prevents duplicate transactions when sync retries occur due to network
issues

## Test plan
- [x] Attempt to create a transaction with a specific ID
- [x] Attempt to create another transaction with the same ID
- [x] Verify the second request returns the existing transaction instead
of an error
2025-12-30 07:22:19 +01:00
..
AccountBalanceSyncController.php feat(AccountBalanceSync): Update existing balances and add new ones efficiently 2025-12-01 11:04:50 +01:00
AccountSyncController.php Remove unused controllers and tests 2025-11-26 12:41:47 +01:00
AutomationRuleSyncController.php feat: add transaction labels feature (#24) 2025-12-13 13:02:19 +01:00
BankSyncController.php Remove unused controllers and tests 2025-11-26 12:41:47 +01:00
CategorySyncController.php feat(category): Update default categories list and sorting logic 2025-11-14 15:28:44 +01:00
LabelSyncController.php feat: add transaction labels feature (#24) 2025-12-13 13:02:19 +01:00
TransactionSyncController.php fix(sync): make transaction creation idempotent (#38) 2025-12-30 07:22:19 +01:00