From f22c3efb112e7ee7c344cb912099d6fb4dd02209 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 16 Jan 2026 05:40:40 -0800 Subject: [PATCH] fix: use correct property name 'type' for unallocated contribution Co-Authored-By: Claude Opus 4.5 --- .../application/services/contribution-calculation.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/contribution-service/src/application/services/contribution-calculation.service.ts b/backend/services/contribution-service/src/application/services/contribution-calculation.service.ts index 89ba5bad..7c689301 100644 --- a/backend/services/contribution-service/src/application/services/contribution-calculation.service.ts +++ b/backend/services/contribution-service/src/application/services/contribution-calculation.service.ts @@ -285,7 +285,7 @@ export class ContributionCalculationService { sourceAdoptionId, sourceAccountSequence, unallocated.wouldBeAccountSequence, - unallocated.contributionType, + unallocated.type, unallocated.amount.value.toString(), unallocated.reason, effectiveDate, @@ -293,7 +293,7 @@ export class ContributionCalculationService { ); await this.outboxRepository.save({ aggregateType: UnallocatedContributionSyncedEvent.AGGREGATE_TYPE, - aggregateId: `${sourceAdoptionId}-${unallocated.contributionType}`, + aggregateId: `${sourceAdoptionId}-${unallocated.type}`, eventType: UnallocatedContributionSyncedEvent.EVENT_TYPE, payload: event.toPayload(), });