Refactor: Replace Authorize with WithAuth in CreateAsync

Updated the `CreateAsync` method in `EnvelopeController` to use
`WithAuth` instead of `Authorize` for handling authorization
within the `CreateEnvelopeCommand`. This change reflects a
refactor or update in the command's API to improve clarity or
functionality.
This commit is contained in:
2026-05-30 16:42:59 +02:00
parent d4f23e0e82
commit 5279731281

View File

@@ -98,7 +98,7 @@ public class EnvelopeController : ControllerBase
[HttpPost]
public async Task<IActionResult> CreateAsync([FromBody] CreateEnvelopeCommand command)
{
var res = await _mediator.Send(command.Authorize(User.GetId()));
var res = await _mediator.Send(command.WithAuth(User.GetId()));
if (res is null)
{