From 8147050d78dbfdddbbc4c97828384f6d95a71458 Mon Sep 17 00:00:00 2001 From: Claromes Date: Sun, 10 Nov 2024 23:29:00 -0300 Subject: [PATCH] fix to field --- src/modules/sendReport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sendReport.ts b/src/modules/sendReport.ts index e07a0a3..7694a32 100644 --- a/src/modules/sendReport.ts +++ b/src/modules/sendReport.ts @@ -5,7 +5,7 @@ import { logging } from "./../utils/utils.ts"; const RESEND_API_KEY = Deno.env.get("RESEND_API_KEY"); const RESEND_EMAIL_FROM = Deno.env.get("RESEND_EMAIL_FROM") as string; -const RESEND_EMAIL_TO = Deno.env.get("RESEND_EMAIL_TO") as string; +const RESEND_EMAIL_TO = JSON.parse(Deno.env.get("RESEND_EMAIL_TO") as string); export async function sendReport(subject: string, text: string): Promise { const resend = new Resend(RESEND_API_KEY);