Working at last!

This commit is contained in:
2026-07-14 16:41:18 +02:00
parent 9759c38a50
commit 9de9777926
2 changed files with 10 additions and 4 deletions
@@ -10,10 +10,10 @@ public static class ApplyFeeHandler
{
public static Task<Account?> LoadAsync(
ApplyFeeCommand cmd,
AccountDbContext db) => db.Set<Account>().AsNoTracking().SingleOrDefaultAsync(x => x.Id == cmd.AccountId);
AccountDbContext db) => db.Accounts.AsNoTracking().SingleOrDefaultAsync(x => x.Id == cmd.AccountId);
[Transactional]
public static (Update<Account> UpdatedAccount, FeeAppliedEvent Event) Handle(
public static (IStorageAction<Account> UpdatedAccount, FeeAppliedEvent Event) Handle(
ApplyFeeCommand cmd,
Account account)
{