fix error with sending responses

This commit is contained in:
2026-03-10 08:19:07 +01:00
parent 756382a496
commit ecdabab5a1
28 changed files with 1255 additions and 985 deletions

View File

@@ -16,6 +16,6 @@ public class CreateAuthorEndpoint(AuthorRepository authorRepository, AutoMapper.
public override async Task HandleAsync(CreateAuthorDto req, CancellationToken ct)
{
await authorRepository.AddAsync(mapper.Map<Author>(req), ct);
await Send.OkAsync(cancellation: ct);
await Send.NoContentAsync(ct);
}
}