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:
parent
807dc8705d
commit
30aa11c6c6
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue