coverMeRourine completed :)

This commit is contained in:
Dobromir Popov
2024-04-06 12:12:01 +03:00
parent c480a4821a
commit aa4e607866
6 changed files with 99 additions and 16 deletions

View File

@ -184,11 +184,7 @@ exports.SendEmail_NewShifts = async function (publisher, shifts) {
sentDate: new Date().toLocaleDateString() // Assuming you want to include the sent date in the email
};
// Call the refactored function to send the email with Handlebars template rendering
await exports.SendEmailHandlebars(
publisher.email, // Assuming the publisher's email is to be used
"newShifts", // The name of your Handlebars template for new shifts notification
model,
await exports.SendEmailHandlebars(publisher.email, "newShifts", model,
[{
filename: "calendar.ics",
content: icsLink,
@ -200,9 +196,6 @@ exports.SendEmail_NewShifts = async function (publisher, shifts) {
//----------------------- OLD -----------------------------
// exports.SendEmail_NewShifts = async function (publisher, shifts) {