Auto refresh annoucements every 30 minutes

This commit is contained in:
Andrew 2023-10-20 15:36:57 -05:00
parent c49159a0e5
commit 2461c32641

View File

@ -136,6 +136,10 @@
});
let responseData = await res.json();
console.log(responseData);
setTimeout(function() {
getAnnouncements();
}, 1800);
console.log("Registered annoucement fetch event in 1 hour.")
if (responseData.status === "ok") {
updateAnnouncements(responseData.data)
} else {