Updating
This commit is contained in:
+3
-2
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user