Skip to content

Commit a62d854

Browse files
committed
debug
1 parent 88f83f8 commit a62d854

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pages/api/as/notify.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
2525
proceed = true;
2626
}
2727
}
28+
console.log(proceed)
2829
if (proceed) {
2930
const access = req.body.access.join(', ');
31+
console.log(access)
3032
const message = req.body.from + '(' + req.body.from_email + ') has invited you to <b>' + access + '</b> the folowing health record:';
3133
const htmlContent = fs.readFileSync(path.join(process.cwd(), 'public', 'email.html'), 'utf-8');
3234
const htmlFinal = htmlContent.replace(/[\r\n]+/gm, '')
@@ -48,6 +50,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
4850
html: htmlFinal,
4951
})
5052
});
53+
console.log(sendmail)
5154
const { error } = await sendmail.json();
5255
if (error) {
5356
console.log(error);

0 commit comments

Comments
 (0)