diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs index 044f009f..3b33cd76 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs @@ -29,6 +29,9 @@ public class AnnotationHandler : INotificationHandler /// /// /// - public Task Handle(DocSignedNotification notification, CancellationToken cancel) - => _repo.CreateAsync(notification.PsPdfKitAnnotation.Structured, cancel); + public async Task Handle(DocSignedNotification notification, CancellationToken cancel) + { + if (notification.PsPdfKitAnnotation is PsPdfKitAnnotation annot) + await _repo.CreateAsync(annot.Structured, cancel); + } } \ No newline at end of file