fix(referral): add EventAckPublisher to InfrastructureModule

- Refactor EventAckPublisher to use KafkaService instead of ClientKafka
- Add kafka/index.ts export file
- Register EventAckPublisher in InfrastructureModule providers and exports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 22:29:54 -08:00
parent dfa21c0280
commit 807dc8705d
3 changed files with 5 additions and 0 deletions

View File

@ -2,3 +2,4 @@ export * from './database';
export * from './repositories';
export * from './messaging';
export * from './cache';
export * from './kafka';

View File

@ -0,0 +1 @@
export * from './event-ack.publisher';

View File

@ -7,6 +7,7 @@ import {
KafkaService,
EventPublisherService,
RedisService,
EventAckPublisher,
} from '../infrastructure';
import {
REFERRAL_RELATIONSHIP_REPOSITORY,
@ -21,6 +22,7 @@ import {
KafkaService,
RedisService,
EventPublisherService,
EventAckPublisher,
{
provide: REFERRAL_RELATIONSHIP_REPOSITORY,
useClass: ReferralRelationshipRepository,
@ -35,6 +37,7 @@ import {
KafkaService,
RedisService,
EventPublisherService,
EventAckPublisher,
REFERRAL_RELATIONSHIP_REPOSITORY,
TEAM_STATISTICS_REPOSITORY,
],