From 54a15cf3cf497489a001ef40e732ebf3d0b900fb Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Sun, 8 Feb 2026 21:44:09 -0500 Subject: [PATCH] Fix account type not updating on edit UpdateAccountRequest was missing the Type field, so changes to account type were silently ignored. Add Type to the DTO and apply it in the update service method. Co-Authored-By: Claude Opus 4.6 --- src/Purrse.Api/Services/AccountService.cs | 1 + src/Purrse.Core/DTOs/AccountDtos.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Purrse.Api/Services/AccountService.cs b/src/Purrse.Api/Services/AccountService.cs index 09d6bb6..c2c1831 100644 --- a/src/Purrse.Api/Services/AccountService.cs +++ b/src/Purrse.Api/Services/AccountService.cs @@ -60,6 +60,7 @@ public class AccountService : IAccountService ?? throw new KeyNotFoundException("Account not found"); account.Name = request.Name; + account.Type = request.Type; account.Institution = request.Institution; account.AccountNumber = request.AccountNumber; account.CreditLimit = request.CreditLimit; diff --git a/src/Purrse.Core/DTOs/AccountDtos.cs b/src/Purrse.Core/DTOs/AccountDtos.cs index 47f711d..293ebd9 100644 --- a/src/Purrse.Core/DTOs/AccountDtos.cs +++ b/src/Purrse.Core/DTOs/AccountDtos.cs @@ -15,6 +15,7 @@ public record CreateAccountRequest( public record UpdateAccountRequest( string Name, + AccountType Type, string? Institution, string? AccountNumber, decimal? CreditLimit,