From de540673443d5104b64dd55b096184d07d40ad11 Mon Sep 17 00:00:00 2001 From: "ai.astrakhantsev" Date: Mon, 12 Sep 2022 09:11:20 +0500 Subject: [PATCH] #5998816 --- AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs index 7934ba9a..ba1f9533 100644 --- a/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs +++ b/AsbCloudInfrastructure/Services/WellFinalDocumentsService.cs @@ -195,7 +195,7 @@ namespace AsbCloudInfrastructure.Services } } - private void SendMessage(WellDto well, UserDto user, string documentCategory, string message, CancellationToken token) + private void SendMessage(WellDto? well, UserDto user, string documentCategory, string message, CancellationToken token) { var factory = new WellFinalDocumentMailBodyFactory(configuration); var subject = factory.MakeSubject(well, documentCategory); @@ -203,7 +203,7 @@ namespace AsbCloudInfrastructure.Services emailService.EnqueueSend(user.Email, subject, body); } - private WellFinalDocumentDBDto Convert(WellFinalDocument entity) + private static WellFinalDocumentDBDto Convert(WellFinalDocument entity) => entity.Adapt(); } #nullable disable