fix: Unsubscribe link in newsletter
This commit is contained in:
parent
5766f274c0
commit
16ea8cc43e
1 changed files with 1 additions and 1 deletions
|
@ -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}`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue