fix: use correct property name 'type' for unallocated contribution

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-16 05:40:40 -08:00
parent 0241930011
commit f22c3efb11
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
});