Skip to content

Commit

Permalink
feat(integrations): introduced new actions to suppress or filter events
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 committed Sep 14, 2023
1 parent 2d2cb1c commit 90f9e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v0/destinations/braze/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const {
simpleProcessRouterDestSync,
simpleProcessRouterDest,
} = require('../../util');
const { InstrumentationError, NetworkError } = require('../../util/errorTypes');
const { InstrumentationError, NetworkError, FilteredEventsError } = require('../../util/errorTypes');
const {
ConfigCategory,
mappingConfig,
Expand Down Expand Up @@ -237,7 +237,7 @@ function processTrackWithUserAttributes(message, destination, mappingJson, proce
if (dedupedAttributePayload) {
requestJson.attributes = [dedupedAttributePayload];
} else {
throw new InstrumentationError(
throw new FilteredEventsError(
'[Braze Deduplication]: Duplicate user detected, the user is dropped',
'filtered'
);
Expand Down

0 comments on commit 90f9e5e

Please sign in to comment.