Skip to content

Commit 37d0d7a

Browse files
authored
Merge pull request #17306 from mozilla/FXA-10027-subplat
feat(newsletters): Update default newsletter slug for SubPlat
2 parents 9618afa + 70fdab3 commit 37d0d7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/fxa-payments-server/src/lib/newsletter.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('lib/newsletter', () => {
2727
it('resolves to undefined on success with default newsletter slug', async () => {
2828
await expect(handleNewsletterSignup()).resolves.toBe(undefined);
2929
expect(apiSignupForNewsletter).toHaveBeenCalledWith({
30-
newsletters: ['mozilla-accounts'],
30+
newsletters: ['mozilla-and-you'],
3131
});
3232
});
3333

packages/fxa-payments-server/src/lib/newsletter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import sentry from './sentry';
99
export const FXA_NEWSLETTER_SIGNUP_ERROR: GeneralError = {
1010
code: 'fxa_newsletter_signup_error',
1111
};
12-
const DEFAULT_NEWSLETTER_SLUG = 'mozilla-accounts';
12+
const DEFAULT_NEWSLETTER_SLUG = 'mozilla-and-you';
1313

1414
export async function handleNewsletterSignup(
1515
productMetadata?: ProductMetadata

packages/fxa-shared/subscriptions/validation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const subscriptionProductMetadataBaseValidator = Joi.object({
2626
newsletterSlug: commaArray
2727
.optional()
2828
.items(
29-
Joi.valid('mozilla-accounts', 'security-privacy-news', 'hubs', 'mdnplus')
29+
Joi.valid('mozilla-and-you', 'security-privacy-news', 'hubs', 'mdnplus')
3030
),
3131
newsletterLabelTextCode: Joi.string()
3232
.optional()

0 commit comments

Comments
 (0)