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

fix: Types #296

Merged
merged 2 commits into from
Jan 16, 2024
Merged

fix: Types #296

merged 2 commits into from
Jan 16, 2024

Conversation

bukinoshita
Copy link
Member

No description provided.

Comment on lines +6 to +10
audienceId: string;
email: string;
unsubscribed?: boolean;
first_name?: string;
last_name?: string;
firstName?: string;
lastName?: string;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are breaking changes

@bukinoshita bukinoshita merged commit da917d8 into canary Jan 16, 2024
4 checks passed
@bukinoshita bukinoshita deleted the fix/rsnd-types branch January 16, 2024 13:44
payload,
`/audiences/${payload.audienceId}/contacts/${payload.id}`,
{
...payload,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we destruct audienceId in here? I don't think it's used in the API's body, but the way we have now will send extra keys in the body.

an even better option would be to explicitly send what we want (since we only care about 3 keys)

Suggested change
...payload,
unsubscribed: payload.unsubscribed,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants