diff --git a/packages/fxa-payments-server/src/lib/newsletter.test.ts b/packages/fxa-payments-server/src/lib/newsletter.test.ts index 75eb67d36fa..6a46cd70190 100644 --- a/packages/fxa-payments-server/src/lib/newsletter.test.ts +++ b/packages/fxa-payments-server/src/lib/newsletter.test.ts @@ -27,7 +27,7 @@ describe('lib/newsletter', () => { it('resolves to undefined on success with default newsletter slug', async () => { await expect(handleNewsletterSignup()).resolves.toBe(undefined); expect(apiSignupForNewsletter).toHaveBeenCalledWith({ - newsletters: ['mozilla-accounts'], + newsletters: ['mozilla-and-you'], }); }); diff --git a/packages/fxa-payments-server/src/lib/newsletter.ts b/packages/fxa-payments-server/src/lib/newsletter.ts index ee93b5a67e4..7d30031aad3 100644 --- a/packages/fxa-payments-server/src/lib/newsletter.ts +++ b/packages/fxa-payments-server/src/lib/newsletter.ts @@ -9,7 +9,7 @@ import sentry from './sentry'; export const FXA_NEWSLETTER_SIGNUP_ERROR: GeneralError = { code: 'fxa_newsletter_signup_error', }; -const DEFAULT_NEWSLETTER_SLUG = 'mozilla-accounts'; +const DEFAULT_NEWSLETTER_SLUG = 'mozilla-and-you'; export async function handleNewsletterSignup( productMetadata?: ProductMetadata diff --git a/packages/fxa-shared/subscriptions/validation.ts b/packages/fxa-shared/subscriptions/validation.ts index 140f84a7377..058e3e8dc06 100644 --- a/packages/fxa-shared/subscriptions/validation.ts +++ b/packages/fxa-shared/subscriptions/validation.ts @@ -26,7 +26,7 @@ export const subscriptionProductMetadataBaseValidator = Joi.object({ newsletterSlug: commaArray .optional() .items( - Joi.valid('mozilla-accounts', 'security-privacy-news', 'hubs', 'mdnplus') + Joi.valid('mozilla-and-you', 'security-privacy-news', 'hubs', 'mdnplus') ), newsletterLabelTextCode: Joi.string() .optional()