Skip to content

Commit

Permalink
fix: comment out fs + email save
Browse files Browse the repository at this point in the history
  • Loading branch information
arsforza committed Aug 23, 2024
1 parent ec88ccd commit 9877dec
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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`;
Expand Down

0 comments on commit 9877dec

Please sign in to comment.