From b901176e8c47e3eb1fc56b58d45547227a9d447c Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 28 Jan 2025 18:52:27 +0100 Subject: [PATCH] chore: data refresh --- src/stores/api.store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/api.store.ts b/src/stores/api.store.ts index 5fcb907..e19c4a4 100644 --- a/src/stores/api.store.ts +++ b/src/stores/api.store.ts @@ -43,9 +43,9 @@ export const useApiStore = defineStore('api', { this.fetchSceneriesData(); this.fetchActiveData(); - // setInterval(() => { - // this.fetchActiveData(); - // }, 20000); + setInterval(() => { + this.fetchActiveData(); + }, 25000); }, async fetchActiveData() { @@ -60,7 +60,7 @@ export const useApiStore = defineStore('api', { this.outdatedTimerId = setTimeout(() => { this.isActiveDataOutdated = true; - }, 30000); + }, 60000); } catch (error) { console.error(error); }