Commit graph

4 commits

Author SHA1 Message Date
Elle Mouton
4d8d4e1fa3
accounts: use UpsertAccountPayment in removePayment
Instead of UpdateAccount.
2025-01-21 12:20:33 +02:00
Elle Mouton
7fb7faa124
accounts: add DeleteAccountPayment method to Store
And use it instead of UpdateAccount.
2025-01-21 12:02:29 +02:00
Elle Mouton
c386008fe6
accounts: use UpsertAccountPayment for TrackPayment
Instead of useing UpdateAccount.
2025-01-21 12:02:19 +02:00
Elle Mouton
7fa370ebc7
accounts: return consistent error for duplicate label
In preparation for when we have a SQL DB implementation, we want our
unit tests to run smoothly against all DB backends and have the same
results. To achieve this, we need to turn some errors into global error
variables that can be matched against instead.

In this commit, we do this for the unique constraint violation of the
account label.
2025-01-16 09:19:05 +02:00