chore: prettier fixes
Signed-off-by: Stephanie Swaney <stephanie.swaney.ddk6@statefarm.com>
This commit is contained in:
+7
-5
@@ -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',
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
+4
-2
@@ -301,7 +301,9 @@ export class NotificationsEmailProcessor implements NotificationProcessor {
|
||||
const ses: Record<string, string> = {};
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user