fix(referral): fix EventAckMessage type casting

Cast ackMessage to Record<string, unknown> for KafkaService compatibility.

🤖 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:31:12 -08:00
parent 807dc8705d
commit 30aa11c6c6
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export class EventAckPublisher {
await this.kafkaService.publish({
topic: 'planting.events.ack',
key: eventId,
value: ackMessage,
value: ackMessage as unknown as Record<string, unknown>,
});
this.logger.log(`[ACK] ✓ Sent success confirmation for event ${eventId} (${eventType})`);
@ -74,7 +74,7 @@ export class EventAckPublisher {
await this.kafkaService.publish({
topic: 'planting.events.ack',
key: eventId,
value: ackMessage,
value: ackMessage as unknown as Record<string, unknown>,
});
this.logger.warn(`[ACK] ✗ Sent failure confirmation for event ${eventId}: ${errorMessage}`);