This commit is contained in:
Zeeshaun
2026-04-27 15:26:58 +00:00
parent 5f6f132ea2
commit 6291ac76dd
15 changed files with 56 additions and 37 deletions
@@ -11,6 +11,7 @@ using LCU.API.Internal.Operations.IncentiveApi.Models.Allied;
using LCU.Library.Internal.IncentiveApiModels.Enums;
using LCU.Library.Internal.IncentiveApiModels.Entities;
using LCU.Library.Internal.IncentiveApiModels.Requests;
using LCU.API.Internal.Operations.IncentiveApi.Services;
using LCU.API.Internal.Operations.IncentiveApi.Services.MicroApiServices;
using LCU.API.Internal.Operations.IncentiveApi.Services.Transformations;
using LCU.Library.Internal.ApiResponse.Services;
@@ -60,14 +61,14 @@ public class AlliedGapMbpTransactionImportService : IAlliedGapMbpTransactionImpo
Log.Information($"Matched/Removed {matchedRemoved} Allied Gap/Mbp records.");
_alliedGapMbpProcessResult.MessageStack.Add($"Imported {importedAlliedSales.Count()} sales, Matched/Removed {matchedRemoved} records for Allied Gap/Mbp Sales processing.");
await QueueReturnResponse.QueueResponse(request, _alliedGapMbpProcessResult.Success, _alliedGapMbpProcessResult.MessageStack);
await SafeQueueReturnResponse.TryQueueResponse(request, _alliedGapMbpProcessResult.Success, _alliedGapMbpProcessResult.MessageStack, nameof(AlliedGapMbpTransactionImportService));
}
catch (Exception exception)
{
var message = $"There was an issue with handling Import Allied Gap/Mbp Sales Exception Message: {exception.Message}.";
_alliedGapMbpProcessResult.MessageStack.Add(message);
_alliedGapMbpProcessResult.Success = false;
await QueueReturnResponse.QueueResponse(request, _alliedGapMbpProcessResult.Success, _alliedGapMbpProcessResult.MessageStack);
await SafeQueueReturnResponse.TryQueueResponse(request, _alliedGapMbpProcessResult.Success, _alliedGapMbpProcessResult.MessageStack, nameof(AlliedGapMbpTransactionImportService));
}
}