From 9877decac6ddbe626dd619769edd4ee239b9a672 Mon Sep 17 00:00:00 2001 From: arsforza Date: Fri, 23 Aug 2024 16:04:14 +0200 Subject: [PATCH] fix: comment out fs + email save --- .../API-service/src/api/notification/email/email.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/API-service/src/api/notification/email/email.service.ts b/services/API-service/src/api/notification/email/email.service.ts index 5a96bb934..01bcb609f 100644 --- a/services/API-service/src/api/notification/email/email.service.ts +++ b/services/API-service/src/api/notification/email/email.service.ts @@ -1,4 +1,4 @@ -import * as fs from 'fs'; +// import * as fs from 'fs'; import { Injectable } from '@nestjs/common'; import Mailchimp from 'mailchimp-api-v3'; @@ -62,7 +62,8 @@ export class EmailService { }); if (isApiTest) { - fs.writeFileSync(`email.html`, emailHtml); + // NOTE: use this to test the email output instead of using Mailchimp + // fs.writeFileSync(`email.html`, emailHtml); return emailHtml; } const emailSubject = `IBF ${emailContent.disasterTypeLabel} alert`;