Skip to content

Commit ec962a1

Browse files
Merge pull request #883 from TransactionProcessing/bug/#881_float_domain_sevice_bug
Float activity fixes
2 parents 6f863f4 + fb3e0c7 commit ec962a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TransactionProcessor.BusinessLogic/Services/FloatDomainService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public async Task<Result> RecordCreditPurchase(FloatActivityCommands.RecordCredi
132132
{
133133
Guid floatActivityAggregateId = IdGenerationService.GenerateFloatActivityAggregateId(command.EstateId, command.FloatId, command.CreditPurchasedDateTime.Date);
134134

135-
Result<FloatActivityAggregate> getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatActivityAggregate>(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken);
135+
Result<FloatActivityAggregate> getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatActivityAggregate>(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken, false);
136136
if (getFloatActivityResult.IsFailed)
137137
return ResultHelpers.CreateFailure(getFloatActivityResult);
138138

@@ -165,7 +165,7 @@ public async Task<Result> RecordTransaction(FloatActivityCommands.RecordTransact
165165
// Generate the id for the activity aggregate
166166
Guid floatActivityAggregateId = IdGenerationService.GenerateFloatActivityAggregateId(command.EstateId, floatId, getTransactionResult.Data.TransactionDateTime.Date);
167167

168-
Result<FloatActivityAggregate> getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatActivityAggregate>(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken);
168+
Result<FloatActivityAggregate> getFloatActivityResult = await DomainServiceHelper.GetAggregateOrFailure(ct => this.AggregateService.GetLatest<FloatActivityAggregate>(floatActivityAggregateId, ct), floatActivityAggregateId, cancellationToken, false);
169169
if (getFloatActivityResult.IsFailed)
170170
return ResultHelpers.CreateFailure(getFloatActivityResult);
171171

0 commit comments

Comments
 (0)