Skip to content

Commit

Permalink
Fix compilation error in nest.js app
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch committed Feb 5, 2024
1 parent 3b7fd87 commit 40e970d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/webhooks/src/services/conversation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
ConversationWebhookEventParsed,
ContactMessage,
MediaMessage,
FallbackMessage,
TextMessage,
SendMessageRequestData,
} from '@sinch/sdk-core';
Expand Down Expand Up @@ -71,7 +70,9 @@ export class ConversationService {
break;
case 'MESSAGE_INBOUND_SMART_CONVERSATION_REDACTION':
console.log('\n## MESSAGE_INBOUND_SMART_CONVERSATION_REDACTION');
console.log(`A.I. analyzed and redacted message:\n${event.message_redaction.contact_message.text_message.text}`);
if ('text_message' in event.message_redaction.contact_message) {
console.log(`A.I. analyzed and redacted message:\n${event.message_redaction.contact_message.text_message.text}`);
}
break;
case 'MESSAGE_SUBMIT':
console.log('\n## MESSAGE_SUBMIT');
Expand Down

0 comments on commit 40e970d

Please sign in to comment.