Skip to content

Commit

Permalink
Added log to find QA issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skaur50 committed Jul 23, 2024
1 parent 5c925df commit 360f3b6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ECC.Core.DataContext;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OFM.Infrastructure.WebAPI.Extensions;
using OFM.Infrastructure.WebAPI.Models;
Expand Down Expand Up @@ -130,6 +131,7 @@ public async Task<JsonObject> RunProcessAsync(ID365AppUserService appUserService
{
_processParams = processParams;
_allowanceId = _processParams.SupplementaryApplication.allowanceId;
_logger.LogInformation("Entered RunPorcessAsync", _processParams.SupplementaryApplication.allowanceId);

IEnumerable<D365CommunicationType> _communicationType = await _emailRepository!.LoadCommunicationTypeAsync();
_informationCommunicationType = _communicationType.Where(c => c.ofm_communication_type_number == _notificationSettings.CommunicationTypes.Information)
Expand All @@ -143,7 +145,8 @@ public async Task<JsonObject> RunProcessAsync(ID365AppUserService appUserService
}
try
{
if(deserializedData.First().fundingstatuscode == (int)ofm_funding_StatusCode.Active)
_logger.LogInformation("Entered try. Funding status is : ", deserializedData.First().fundingstatuscode);
if (deserializedData.First().fundingstatuscode == (int)ofm_funding_StatusCode.Active)
await _emailRepository.CreateAllowanceEmail(deserializedData.First(), _processParams.Notification.SenderId, _informationCommunicationType, ProcessId, d365WebApiService);
}
catch (Exception ex)
Expand Down

0 comments on commit 360f3b6

Please sign in to comment.