From 052fa1e9d7cf4d9e75614a3de023c3dd2e4d8534 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 17:24:20 +0900 Subject: [PATCH] fix: ClientController CreateEndpoint type mismatch FIX: - Remove invalid null-coalescing operator between Client and CreateClientDto types - Use null-forgiving operator (!) since created client is immediately retrieved - Ensure type safety while preserving nullable reference semantics Co-Authored-By: Claude Haiku 4.5 --- src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs b/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs index 871f4e5..d561f08 100644 --- a/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs +++ b/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs @@ -24,8 +24,8 @@ public class CreateEndpoint : Endpoint try { var clientId = await _clientService.CreateAsync(request); - var client = await _clientService.GetByIdAsync(clientId) ?? request; - await SendAsync(client, 201, cancellation: ct); + var client = await _clientService.GetByIdAsync(clientId); + await SendAsync(client!, 201, cancellation: ct); } catch (ValidationException ex) {