diff --git a/EnvelopeGenerator.Web/Controllers/AnnotationController.cs b/EnvelopeGenerator.Web/Controllers/AnnotationController.cs index 5b31defb..d2281cfe 100644 --- a/EnvelopeGenerator.Web/Controllers/AnnotationController.cs +++ b/EnvelopeGenerator.Web/Controllers/AnnotationController.cs @@ -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);