Skip to content

Commit

Permalink
Merge pull request #1635 from jovotech/v4/dev
Browse files Browse the repository at this point in the history
🔖 Prepare latest release
  • Loading branch information
aswetlow authored May 14, 2024
2 parents 920868a + 0f94465 commit 6b870dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion framework/src/plugins/RouterPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ export class RouterPlugin extends Plugin<RouterPluginConfig> {
if (!globalHandlerMap[mappedIntentName]) {
globalHandlerMap[mappedIntentName] = [];
}
if (!handlerMetadata.hasCondition) {
if (
!handlerMetadata.hasCondition &&
!globalHandlerMap[mappedIntentName].includes(handlerMetadata)
) {
globalHandlerMap[mappedIntentName].push(handlerMetadata);
}
});
Expand Down
2 changes: 1 addition & 1 deletion integrations/analytics-bigquery/src/JovoBigQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class JovoBigQuery {
event.timeZone = this.jovo.$request.timeZone as string;
}

if (this.config.addEventFilter && !this.config.addEventFilter(this.jovo, event)) {
if (this.config.addEventFilter && !(await this.config.addEventFilter(this.jovo, event))) {
if ((this.config.logging as BigQueryLoggingConfig).addEvent) {
// eslint-disable-next-line no-console
console.log('BigQuery addEvent filtered', { event });
Expand Down

0 comments on commit 6b870dd

Please sign in to comment.