-
Notifications
You must be signed in to change notification settings - Fork 12
Feature/uninstall email #366
Changes from 6 commits
a62458f
78108ab
b38081b
8a6e8a2
b31fcfb
da521cc
3c1536a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default async function sendUninstall({ emails }: { emails: string[] }) { | ||
const sgMail = require("@sendgrid/mail"); | ||
sgMail.setApiKey(process.env.SENDGRID_API_KEY); | ||
const msg = { | ||
to: emails, | ||
from: "[email protected]", | ||
templateId: "d-21dcf37205e4479d830dbcfd35cb41d6", | ||
}; | ||
sgMail | ||
.sendMultiple(msg) | ||
.then(() => { | ||
console.log("Email sent"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file contains at least one console log. Please remove any present. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There you go! just fix this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uh so should it be sent to Posthog or...? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds like a plan, but don't be too strict about it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file contains at least one console log. Please remove any present. |
||
return { success: true }; | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file contains at least one console log. Please remove any present.