API NEW CONTROLLER UPDATED - Use light query for EnvelopeReceiver loading
Replaced _mediator.ReadEnvelopeReceiverAsync with a light query (ReadEnvelopeReceiverLightQuery) that excludes Documents and Elements, improving performance by fetching only essential data.
This commit is contained in:
@@ -89,8 +89,9 @@ public class ReceiverAuthController : ControllerBase
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── EnvelopeReceiver laden ──
|
// ── EnvelopeReceiver laden (Light-Query: ohne Documents/Elements) ──
|
||||||
var er = await _mediator.ReadEnvelopeReceiverAsync(key, cancel);
|
var er = await _mediator.Send(
|
||||||
|
new ReadEnvelopeReceiverLightQuery { Key = key }, cancel);
|
||||||
if (er is null)
|
if (er is null)
|
||||||
return NotFound(new ReceiverAuthResponse { Status = "not_found" });
|
return NotFound(new ReceiverAuthResponse { Status = "not_found" });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user