fix: use correct property name 'type' for unallocated contribution
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0241930011
commit
f22c3efb11
|
|
@ -285,7 +285,7 @@ export class ContributionCalculationService {
|
||||||
sourceAdoptionId,
|
sourceAdoptionId,
|
||||||
sourceAccountSequence,
|
sourceAccountSequence,
|
||||||
unallocated.wouldBeAccountSequence,
|
unallocated.wouldBeAccountSequence,
|
||||||
unallocated.contributionType,
|
unallocated.type,
|
||||||
unallocated.amount.value.toString(),
|
unallocated.amount.value.toString(),
|
||||||
unallocated.reason,
|
unallocated.reason,
|
||||||
effectiveDate,
|
effectiveDate,
|
||||||
|
|
@ -293,7 +293,7 @@ export class ContributionCalculationService {
|
||||||
);
|
);
|
||||||
await this.outboxRepository.save({
|
await this.outboxRepository.save({
|
||||||
aggregateType: UnallocatedContributionSyncedEvent.AGGREGATE_TYPE,
|
aggregateType: UnallocatedContributionSyncedEvent.AGGREGATE_TYPE,
|
||||||
aggregateId: `${sourceAdoptionId}-${unallocated.contributionType}`,
|
aggregateId: `${sourceAdoptionId}-${unallocated.type}`,
|
||||||
eventType: UnallocatedContributionSyncedEvent.EVENT_TYPE,
|
eventType: UnallocatedContributionSyncedEvent.EVENT_TYPE,
|
||||||
payload: event.toPayload(),
|
payload: event.toPayload(),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue