Skip to content

Commit

Permalink
not log query when trigger in editor and use lower case for query
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hub committed Sep 4, 2023
1 parent a8c807f commit f16e4d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/suggesetor/VerseEditorSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class VerseEditorSuggester extends EditorSuggest<VerseSuggesting> {
console.debug('trigger on', currentContent)
EventStats.logUIOpen(
'lookupEditorOpen',
{ key: `${this.settings.bibleVersion}-match`, value: 1 },
{ key: `${this.settings.bibleVersion}`, value: 1 },
this.settings.optOutToEvents
)
return {
Expand Down Expand Up @@ -74,7 +74,7 @@ export class VerseEditorSuggester extends EditorSuggest<VerseSuggesting> {
)
EventStats.logLookup(
'verseLookUp',
{ key: `${this.settings.bibleVersion}-${context.query}`, value: 1 },
{ key: `${this.settings.bibleVersion}-${context.query.toLowerCase()}`, value: 1 },
this.settings.optOutToEvents
)
return suggestions
Expand Down
2 changes: 1 addition & 1 deletion src/suggesetor/VerseLookupSuggestModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class VerseLookupSuggestModal extends SuggestModal<VerseSuggesting> {
console.debug('trigger on', query)
EventStats.logLookup(
'verseLookUp',
{ key: `${this.settings.bibleVersion}-${match}`, value: 1 },
{ key: `${this.settings.bibleVersion}-${match.toLowerCase()}`, value: 1 },
this.settings.optOutToEvents
)
return getSuggestionsFromQuery(`--${query}`, this.settings)
Expand Down

0 comments on commit f16e4d0

Please sign in to comment.