Skip to content

Commit

Permalink
refactor(general): update sendgrid custom fields names
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue committed May 28, 2024
1 parent 2dad4a4 commit 1de3d84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/src/sendgrid/SendgridSubscriptionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class SendgridSubscriptionClient extends Client {
first_name: data.firstname,
last_name: data.lastname,
country: data.country,
custom_fields: { language: data.language, is_contributor: data.isContributor },
custom_fields: { language: data.language, contributor: data.isContributor ? 'yes' : 'no' },
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion shared/src/sendgrid/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type SendgridContactType = {
_metadata: any[];
custom_fields: {
language: string;
is_contributor: string;
contributor: string;
};
created_at: string;
updated_at: string;
Expand Down

0 comments on commit 1de3d84

Please sign in to comment.