Skip to content

Commit 0b661ec

Browse files
committed
feat: add log
1 parent 6f585fa commit 0b661ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

back/api/campaign/services/campaign.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ module.exports = {
144144

145145
if (Boolean(campaign?.confirmation_notification_date)) {
146146
const selectionNotificationDate = new Date(campaign.confirmation_notification_date)
147-
148147
if (selectionNotificationDate.toDateString() === today.toDateString()) {
149148
const placesMap = {}
150149

back/extensions/email/services/email.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const sendEmail = async (
2121
data = {},
2222
isAdmin = false
2323
) => {
24+
if (template.templateId !== 'confirmation-preselection-place') {
25+
console.log(`skipping ${template.templateId}`)
26+
return
27+
}
28+
2429
if (!template.templateId) {
2530
console.log("No template id given");
2631
return;

0 commit comments

Comments
 (0)