Skip to content

Commit

Permalink
chore: collect metric after conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jun 10, 2024
1 parent c347984 commit ffb7831
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 @@ -230,8 +230,6 @@ async function processIdentify(message, destination) {
},
);

collectStatsForAliasFailure(brazeIdentifyResp, destination.ID);

if (!isHttpStatusSuccess(brazeIdentifyResp.status)) {
throw new NetworkError(
`Braze identify failed - ${JSON.stringify(brazeIdentifyResp.response)}`,
Expand All @@ -242,6 +240,8 @@ async function processIdentify(message, destination) {
brazeIdentifyResp.response,
);
}

collectStatsForAliasFailure(brazeIdentifyResp, destination.ID);
}

function processTrackWithUserAttributes(
Expand Down

0 comments on commit ffb7831

Please sign in to comment.