send newsletter working through API for one adress

This commit is contained in:
isUnknown 2025-02-05 16:01:16 +01:00
parent 08323f4a02
commit 4f6e32bfaa
4 changed files with 9 additions and 7 deletions

View file

@ -94,6 +94,8 @@ async function send(event, isTest = false) {
const response = await fetch("/send-newsletter.json", headers);
const data = await response.json();
console.log(data);
if (data.status === "success") {
currentBtnState.value = {
theme: "green",