Skip to content

Commit

Permalink
add sendError
Browse files Browse the repository at this point in the history
  • Loading branch information
Szotkowski committed Sep 27, 2023
1 parent 236cf06 commit 38c2b38
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/services/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,13 @@ export class EmailService {
html: body,
});
}

async sendError(error: string): Promise<void> {
await EmailDataSource.sendMail({
from: process.env.EMAIL_USER,
to: 'error@selecro.cz',
subject: 'Selecro: error',
html: error,
});
}
}

0 comments on commit 38c2b38

Please sign in to comment.