16578 link url updated
This commit is contained in:
@@ -62,7 +62,8 @@ const buildNotifyPayloads = (watchlistByEmail) => {
|
|||||||
doc.pinswg_documentpublisheddate?.split("T")[0]
|
doc.pinswg_documentpublisheddate?.split("T")[0]
|
||||||
) || "No Date";
|
) || "No Date";
|
||||||
const link =
|
const link =
|
||||||
process.env.API_ROOT + doc.pinswg_hashlink || "[No Link]";
|
process.env.NEXTAUTH_URL + doc.pinswg_hashlink ||
|
||||||
|
"[No Link]";
|
||||||
return ` - ${ref}: ${name} (${date})\n Link: ${link}`;
|
return ` - ${ref}: ${name} (${date})\n Link: ${link}`;
|
||||||
})
|
})
|
||||||
.join("\n");
|
.join("\n");
|
||||||
@@ -139,7 +140,7 @@ const buildNotifyPayloads = (watchlistByEmail) => {
|
|||||||
)}\n`
|
)}\n`
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
const caseUnsubscribelink = `Unsubscribe to updates on this case https://${process.env.API_ROOT}/unsubscribe/${entry.pinswg_watchlistid}`;
|
const caseUnsubscribelink = `Unsubscribe to updates on this case https://${process.env.NEXTAUTH_URL}/unsubscribe/${entry.pinswg_watchlistid}`;
|
||||||
|
|
||||||
return `Case: ${caseRef}\n${[
|
return `Case: ${caseRef}\n${[
|
||||||
docSection,
|
docSection,
|
||||||
@@ -152,7 +153,7 @@ const buildNotifyPayloads = (watchlistByEmail) => {
|
|||||||
})
|
})
|
||||||
.join("\n\n"),
|
.join("\n\n"),
|
||||||
unsubscribeLink: `Unsubscribe by selecting this link if you no longer want to receive any updates ${
|
unsubscribeLink: `Unsubscribe by selecting this link if you no longer want to receive any updates ${
|
||||||
process.env.API_ROOT + "unsubscribeall/" + "contactId"
|
process.env.NEXTAUTH_URL + "unsubscribeall/" + "contactId"
|
||||||
}`,
|
}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -162,7 +163,7 @@ const buildNotifyPayloads = (watchlistByEmail) => {
|
|||||||
personalisation,
|
personalisation,
|
||||||
reference,
|
reference,
|
||||||
oneClickUnsubscribeURL:
|
oneClickUnsubscribeURL:
|
||||||
process.env.API_ROOT + "unsubscribe/" + "eee",
|
process.env.NEXTAUTH_URL + "unsubscribe/" + "eee",
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter(Boolean); // Remove any nulls from filtered-out users
|
.filter(Boolean); // Remove any nulls from filtered-out users
|
||||||
|
|||||||
Reference in New Issue
Block a user