Update app.js
This commit is contained in:
@@ -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 }),
|
||||||
|
|||||||
Reference in New Issue
Block a user