From fb3e0c7d6488c53dd10036332e1e663a6a3629f6 Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Mon, 25 Aug 2025 16:06:22 +0100 Subject: [PATCH] Float activity fixes --- .../Services/FloatDomainService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TransactionProcessor.BusinessLogic/Services/FloatDomainService.cs b/TransactionProcessor.BusinessLogic/Services/FloatDomainService.cs index 4fffc9fb..dea1fdb0 100644 --- a/TransactionProcessor.BusinessLogic/Services/FloatDomainService.cs +++ b/TransactionProcessor.BusinessLogic/Services/FloatDomainService.cs @@ -132,7 +132,7 @@ public async Task RecordCreditPurchase(FloatActivityCommands.RecordCredi { Guid floatActivityAggregateId = IdGenerationService.GenerateFloatActivityAggregateId(command.EstateId, command.FloatId, command.CreditPurchasedDateTime.Date); - Result getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken); + Result getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken, false); if (getFloatActivityResult.IsFailed) return ResultHelpers.CreateFailure(getFloatActivityResult); @@ -165,7 +165,7 @@ public async Task RecordTransaction(FloatActivityCommands.RecordTransact // Generate the id for the activity aggregate Guid floatActivityAggregateId = IdGenerationService.GenerateFloatActivityAggregateId(command.EstateId, floatId, getTransactionResult.Data.TransactionDateTime.Date); - Result getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken); + Result getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken, false); if (getFloatActivityResult.IsFailed) return ResultHelpers.CreateFailure(getFloatActivityResult);