Update app.js

This commit is contained in:
oliver
2026-06-22 18:38:27 -03:00
parent 9ddfc00aa0
commit 15dda4632f
+1 -1
View File
@@ -1463,7 +1463,7 @@ async function saveAffiliateLinks() {
map[area][field] = inp.value; map[area][field] = inp.value;
} }
const areas = Object.values(map); const areas = Object.values(map);
const res = await fetch(AFFILIATE_LINKS_URL, { const res = await apiFetch(AFFILIATE_LINKS_URL, {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ areas }), body: JSON.stringify({ areas }),