Revalidate authz before requesting inventory
This commit is contained in:
parent
0889c70acc
commit
8702b95a81
@ -1083,6 +1083,7 @@ function doAddAllMods() {
|
|||||||
modsAll.add(child.getAttribute("data-key"));
|
modsAll.add(child.getAttribute("data-key"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
revalidateAuthz(() => {
|
||||||
const req = $.get("/api/inventory.php?" + window.authz + "&xpBasedLevelCapDisabled=1");
|
const req = $.get("/api/inventory.php?" + window.authz + "&xpBasedLevelCapDisabled=1");
|
||||||
req.done(data => {
|
req.done(data => {
|
||||||
for (const modOwned of data.RawUpgrades) {
|
for (const modOwned of data.RawUpgrades) {
|
||||||
@ -1098,7 +1099,6 @@ function doAddAllMods() {
|
|||||||
batches.push(modsAll.slice(i, i + 1000));
|
batches.push(modsAll.slice(i, i + 1000));
|
||||||
}
|
}
|
||||||
batches.forEach(batch => {
|
batches.forEach(batch => {
|
||||||
revalidateAuthz(() => {
|
|
||||||
$.post({
|
$.post({
|
||||||
url: "/api/missionInventoryUpdate.php?" + window.authz,
|
url: "/api/missionInventoryUpdate.php?" + window.authz,
|
||||||
contentType: "text/plain",
|
contentType: "text/plain",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user