Merge branch 'tweak/auto-notify' into 'dev'

Auto refresh annoucements every 30 minutes

See merge request crafty-controller/crafty-4!653
This commit is contained in:
Iain Powrie 2023-10-21 11:45:13 +00:00
commit d53b3fc0e2
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ TBD
### Bug fixes
TBD
### Tweaks
TBD
- Auto refresh Crafty Announcements on 30m interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/653))
### Lang
- Update zh_CN lang file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/652))
<br><br>

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 30 minutes.")
if (responseData.status === "ok") {
updateAnnouncements(responseData.data)
} else {