Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix delete endpoint for braze #3791

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/v0/destinations/braze/deleteUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
}
// Endpoints different for different data centers.
// DOC: https://www.braze.com/docs/user_guide/administrative/access_braze/braze_instances/
// Example Data Center: "EU-01", "US-01"
let endPoint;
const endpointPath = '/users/delete';
const dataCenterArr = dataCenter.trim().split('-');
krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
if (dataCenterArr[0].toLowerCase() === 'eu') {
endPoint = 'https://rest.fra-01.braze.eu/users/delete';
endPoint = `https://rest.fra-${dataCenterArr[1]}.braze.eu/users/delete`;

Check warning on line 29 in src/v0/destinations/braze/deleteUsers.js

View check run for this annotation

Codecov / codecov/patch

src/v0/destinations/braze/deleteUsers.js#L29

Added line #L29 was not covered by tests
ItsSudip marked this conversation as resolved.
Show resolved Hide resolved
} else {
endPoint = `https://rest.iad-${dataCenterArr[1]}.braze.com/users/delete`;
}
Expand Down
Loading