Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into version-3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanakram3 committed Jan 9, 2024
2 parents 93d6841 + 05fb302 commit b36400f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/mail-scheduler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ export async function deliverEmails() {
let content
let subject
if (process.env.TESTING !== 'true' && process.env.TESTING !== '1') {
const result = await createMailContent(
em,
appName,
notificationDelivery.notification
)
const result = await createMailContent(em, appName, notificationDelivery.notification)
content = result?.content
subject = result?.subject
}
Expand All @@ -46,8 +42,8 @@ export async function deliverEmails() {
content && subject
? await executeMailDelivery(appName, em, toAccount, subject, content)
: new EmailFailure({
errorStatus: 'Failure in Creating mail content',
})
errorStatus: 'Failure in Creating mail content',
})

const newAttempt = new EmailDeliveryAttempt({
id: uniqueId(),
Expand Down

0 comments on commit b36400f

Please sign in to comment.