Skip to content

Commit

Permalink
feat: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Jan 22, 2025
1 parent 6f585fa commit 0b661ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion back/api/campaign/services/campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ module.exports = {

if (Boolean(campaign?.confirmation_notification_date)) {
const selectionNotificationDate = new Date(campaign.confirmation_notification_date)

if (selectionNotificationDate.toDateString() === today.toDateString()) {
const placesMap = {}

Expand Down
5 changes: 5 additions & 0 deletions back/extensions/email/services/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ const sendEmail = async (
data = {},
isAdmin = false
) => {
if (template.templateId !== 'confirmation-preselection-place') {
console.log(`skipping ${template.templateId}`)
return
}

if (!template.templateId) {
console.log("No template id given");
return;
Expand Down

0 comments on commit 0b661ec

Please sign in to comment.