Refactor return value in EnvelopeReceiverController

Modified the method to return a single item or null by using
`SingleOrDefault()` on the result of `await _mediator.Send(...)`.
This ensures the response is no longer a collection but a single
object, improving clarity and aligning with expected behavior.
This commit is contained in:
2026-06-01 03:53:01 +02:00
parent 683f1eaf13
commit 360a762fb9

View File

@@ -89,7 +89,7 @@ public class EnvelopeReceiverController : ControllerBase
Key = envelopeKey
}, cancel);
return Ok(er);
return Ok(er.SingleOrDefault());
}
/// <summary>