From 94a30fed5aec5dc61d66c8c681dcb3be30621523 Mon Sep 17 00:00:00 2001 From: Stephanie Swaney Date: Mon, 23 Jun 2025 16:59:05 -0500 Subject: [PATCH] chore: prettier fixes Signed-off-by: Stephanie Swaney --- .../processor/NotificationsEmailProcessor.test.ts | 12 +++++++----- .../src/processor/NotificationsEmailProcessor.ts | 6 ++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts index 7b609d4543..0b758a50f5 100644 --- a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts +++ b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.test.ts @@ -458,9 +458,11 @@ describe('NotificationsEmailProcessor', () => { sender: 'backstage@backstage.io', replyTo: 'no-reply@backstage.io', sesConfig: { - SourceArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', - FromArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', - } + SourceArn: + 'arn:aws:ses:us-west-2:123456789012:identity/example.com', + FromArn: + 'arn:aws:ses:us-west-2:123456789012:identity/example.com', + }, }, }, }, @@ -469,7 +471,7 @@ describe('NotificationsEmailProcessor', () => { const processor = new NotificationsEmailProcessor( logger, mockServices.rootConfig({ data: SES_SENDMAIL_CONFIG }), - catalogServiceMock({ entities: [ DEFAULT_ENTITIES_RESPONSE.items[ 0 ] ] }), + catalogServiceMock({ entities: [DEFAULT_ENTITIES_RESPONSE.items[0]] }), auth, ); @@ -497,7 +499,7 @@ describe('NotificationsEmailProcessor', () => { ses: { SourceArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', FromArn: 'arn:aws:ses:us-west-2:123456789012:identity/example.com', - } + }, }); }); }); diff --git a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts index c081dbe40e..461b8ed2f1 100644 --- a/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts +++ b/plugins/notifications-backend-module-email/src/processor/NotificationsEmailProcessor.ts @@ -301,7 +301,9 @@ export class NotificationsEmailProcessor implements NotificationProcessor { const ses: Record = {}; const sourceArn = this.sesConfig.getOptionalString('SourceArn'); const fromArn = this.sesConfig.getOptionalString('FromArn'); - const configurationSetName = this.sesConfig.getOptionalString('ConfigurationSetName'); + const configurationSetName = this.sesConfig.getOptionalString( + 'ConfigurationSetName', + ); if (sourceArn) ses.SourceArn = sourceArn; if (fromArn) ses.FromArn = fromArn; @@ -317,7 +319,7 @@ export class NotificationsEmailProcessor implements NotificationProcessor { html: this.getHtmlContent(notification), text: this.getTextContent(notification), replyTo: this.replyTo, - ses: await this.getSesOptions() + ses: await this.getSesOptions(), }; await this.sendMails(mailOptions, emails);