fix: ClientController CreateEndpoint type mismatch
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m1s
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m1s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -24,8 +24,8 @@ public class CreateEndpoint : Endpoint<CreateClientDto, object>
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user