Updating
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Models.Dayforce;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Models.Payout;
|
||||
using LCU.API.Internal.Operations.IncentiveApiLib.Repositories;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Entities;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Common;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Requests;
|
||||
@@ -40,7 +41,7 @@ public class PayoutService : IPayoutService
|
||||
var result = await CreateMonthlyIncentivePayouts(request);
|
||||
|
||||
Log.Information("Successfully Processed Monthly Incentive Payouts.");
|
||||
await QueueReturnResponse.QueueResponse(request, _payoutIncentiveProcessResult.Success, _payoutIncentiveProcessResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _payoutIncentiveProcessResult.Success, _payoutIncentiveProcessResult.MessageStack, nameof(PayoutService));
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
@@ -49,7 +50,7 @@ public class PayoutService : IPayoutService
|
||||
var message = $"There was an Unhandled error with Monthly Incentive Payout Process from {monthsBack} months back from today's date. Exception Message: {exception.Message}.";
|
||||
_payoutIncentiveProcessResult.MessageStack.Add(message);
|
||||
_payoutIncentiveProcessResult.Success = false;
|
||||
await QueueReturnResponse.QueueResponse(request, _payoutIncentiveProcessResult.Success, _payoutIncentiveProcessResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _payoutIncentiveProcessResult.Success, _payoutIncentiveProcessResult.MessageStack, nameof(PayoutService));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user