diff options
| author | Leo Goetz <dev@leogtz.de> | 2026-05-24 06:50:57 +0200 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2026-05-24 06:50:57 +0200 |
| commit | ca8537af0ab596fddd8d72e6630f278326ef5360 (patch) | |
| tree | 170d9f82b28f292f40785e33b3981121b6793c3c /src/actions/sendEmail.ts | |
| parent | d05bfaf95fb666fea02c8aceae3ce02c9e315d3d (diff) | |
feat: added fix functionality
Diffstat (limited to 'src/actions/sendEmail.ts')
| -rw-r--r-- | src/actions/sendEmail.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/actions/sendEmail.ts b/src/actions/sendEmail.ts index 4509a8e..62c527f 100644 --- a/src/actions/sendEmail.ts +++ b/src/actions/sendEmail.ts @@ -1,11 +1,11 @@ import nodemailer from "nodemailer"; import { emailConfig } from "../utils/email.js"; -import type { Project } from "../types.js"; +import type { ProjectAudit } from "../types.js"; const transporter = nodemailer.createTransport(emailConfig); export const sendAuditEmail = async ( - projects: PromiseSettledResult<Project>[], + projects: PromiseSettledResult<ProjectAudit>[], ) => { const text = emailContent(projects); const email = await transporter.sendMail({ @@ -18,7 +18,9 @@ export const sendAuditEmail = async ( return email; }; -const emailContent = (projects: PromiseSettledResult<Project>[]): string => { +const emailContent = ( + projects: PromiseSettledResult<ProjectAudit>[], +): string => { return `Here is your Report: ${projects.map((project) => { if (project.status === "fulfilled") { |
