1
0
Fork 0

fix: Unsubscribe link in newsletter

This commit is contained in:
Joost De Cock 2022-07-02 15:44:41 +02:00
parent 5766f274c0
commit 16ea8cc43e

View file

@ -71,7 +71,7 @@ const send = async (test = true) => {
// you can use this if loop to start just after the last // you can use this if loop to start just after the last
// successful delivery // successful delivery
if (i > 0) { if (i > 0) {
let unsub = `${backend}unsubscribe/${sub.ehash}` let unsub = `${backend}newsletter/unsubscribe/${sub.ehash}`
inject.unsubscribe = unsub inject.unsubscribe = unsub
let body = mustache.render(template, inject) let body = mustache.render(template, inject)
console.log(`${i}/${subs} Sending to ${sub.email}`) console.log(`${i}/${subs} Sending to ${sub.email}`)