Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(employeeInfo => {
// Send the employees pin number
const confirmationEmail = {
to: email,
from: 'support@maincourse.app',
subject: 'Welcome to Main Course!',
text: 'Thank you for signing up for Main Course',
html: mjml2html(`
Main Course POS
.then(adminInfo => {
// Send a confirmation email
if (process.env.NODE_ENV !== 'test') {
const confirmationEmail = {
to: email,
from: 'support@maincourse.app',
subject: 'Welcome to Main Course!',
text: 'Thank you for signing up for Main Course',
html: mjml2html(`
Main Course POS
function get_html(app, data, logo_cid) {
const result = mjml2html(`
<h1>
${data.subject}
</h1>
${data.text}
${data.buttons.map(
button =>