coverMeRourine completed :)
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user