From 1de3d84f66043ef98d99709926a16ad14aadd0c9 Mon Sep 17 00:00:00 2001 From: mkue Date: Wed, 29 May 2024 00:55:40 +0200 Subject: [PATCH] refactor(general): update sendgrid custom fields names --- shared/src/sendgrid/SendgridSubscriptionClient.ts | 2 +- shared/src/sendgrid/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/sendgrid/SendgridSubscriptionClient.ts b/shared/src/sendgrid/SendgridSubscriptionClient.ts index ed02f51a3..4e7b7a83e 100644 --- a/shared/src/sendgrid/SendgridSubscriptionClient.ts +++ b/shared/src/sendgrid/SendgridSubscriptionClient.ts @@ -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' }, }, ], }, diff --git a/shared/src/sendgrid/types.ts b/shared/src/sendgrid/types.ts index da6278312..0ab0ede78 100644 --- a/shared/src/sendgrid/types.ts +++ b/shared/src/sendgrid/types.ts @@ -27,7 +27,7 @@ export type SendgridContactType = { _metadata: any[]; custom_fields: { language: string; - is_contributor: string; + contributor: string; }; created_at: string; updated_at: string;