I forgot to change the 24h countdown back to 24h instead of 1 seconds

This commit is contained in:
FlorianZahn
2021-10-11 03:50:19 +02:00
parent aa8ee02277
commit 60ef51b7f5

View File

@@ -772,7 +772,7 @@ function getVipSegmentsWarnings(id: string): void {
async function isVipLookup() {
const currentTime = Date.now();
const lastUpdate = Config.config.lastIsVipUpdate;
if (currentTime - lastUpdate > 1) { //max every 24 hours 1000*60*60*24
if (currentTime - lastUpdate > 1000*60*60*24) { //max every 24 hours 1000*60*60*24
Config.config.lastIsVipUpdate = currentTime;
utils.sendRequestToServer("GET", "/api/isUserVIP?userID=" + Config.config.userID,
(response) => {