From 1acaacb0fe1821813bdb4a3c6b552203d9cf5c43 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Tue, 26 Aug 2025 10:35:05 +0100 Subject: [PATCH] Update RecordActivityDateOnMerchantStatement method Added an additional parameter to the call of DomainServiceHelper.GetAggregateOrFailure in the MerchantStatementDomainService.cs file. This change likely modifies the method's behavior regarding aggregate retrieval and failure handling. --- .../Services/MerchantStatementDomainService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TransactionProcessor.BusinessLogic/Services/MerchantStatementDomainService.cs b/TransactionProcessor.BusinessLogic/Services/MerchantStatementDomainService.cs index 53e82755..64838347 100644 --- a/TransactionProcessor.BusinessLogic/Services/MerchantStatementDomainService.cs +++ b/TransactionProcessor.BusinessLogic/Services/MerchantStatementDomainService.cs @@ -282,7 +282,7 @@ public async Task RecordActivityDateOnMerchantStatement(MerchantStatemen try { // Work out the next statement date - Result getMerchantStatementResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(command.MerchantStatementId, ct), command.MerchantStatementId, cancellationToken); + Result getMerchantStatementResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(command.MerchantStatementId, ct), command.MerchantStatementId, cancellationToken, false); if (getMerchantStatementResult.IsFailed) return ResultHelpers.CreateFailure(getMerchantStatementResult);