fix(AnnotationController): use PublishSafely for docSignedNotification

Replaced `await _mediator.Publish(docSignedNotification, cancel)` with
`await _mediator.PublishSafely(docSignedNotification, cancel)` to ensure
safe publishing of notifications without unhandled exceptions.
This commit is contained in:
tekh 2025-10-22 14:25:50 +02:00
parent f3af30c67d
commit 17c7e46388

View File

@ -65,7 +65,7 @@ public class AnnotationController : ControllerBase
.ToDocSignedNotification(psPdfKitAnnotation)
?? throw new NotFoundException("Envelope receiver is not found.");
await _mediator.Publish(docSignedNotification, cancel);
await _mediator.PublishSafely(docSignedNotification, cancel);
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);