Skip to content

Commit

Permalink
refactor(plugin-flow-builder): use request.input.message_id typed in …
Browse files Browse the repository at this point in the history
…core
  • Loading branch information
Iru89 committed May 24, 2024
1 parent 4b942ae commit 7e19897
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ async function trackIntentEvent(
nluIntentLabel: request.input.intent,
nluIntentConfidence: request.input.confidence,
nluIntentThreshold: intentNode?.content.confidence,
// @ts-ignore
nluIntentMessageId: request.input.messageId,
nluIntentMessageId: request.input.message_id,
}
await trackEvent(request, EventAction.intent, eventArgs)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export class KeywordMatcher {
nluKeywordId: this.keywordNodeId,
nluKeywordName: this.matchedKeyword,
nluKeywordIsRegex: this.isRegExp,
// @ts-ignore
nluKeywordMessageId: this.request.input.messageId,
nluKeywordMessageId: this.request.input.message_id,
}
await trackEvent(this.request, EventAction.keyword, eventArgs)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ export class SmartIntentsApi {
trackEvent(this.currentRequest, EventAction.intentSmart, {
nluIntentSmartTitle: response.data.smart_intent_title,
nluIntentSmartNumUsed: response.data.smart_intents_used,
// @ts-ignore
nluIntentSmartMessageId: this.currentRequest.input.messageId,
nluIntentSmartMessageId: this.currentRequest.input.message_id,
})
return smartIntentNode
}
Expand Down

0 comments on commit 7e19897

Please sign in to comment.