hotfix: data fetching

This commit is contained in:
2024-10-02 14:58:58 +02:00
parent c33b5ef8c1
commit 3cfccb1bb4
+1 -5
View File
@@ -59,11 +59,7 @@ export const useApiStore = defineStore('apiStore', {
if (t >= this.nextDataCheckTime) { if (t >= this.nextDataCheckTime) {
this.fetchDonatorsData(); this.fetchDonatorsData();
this.fetchVehiclesInfo(); this.fetchVehiclesInfo();
this.fetchStationsGeneralInfo();
// Revalidation after staling
this.fetchStationsGeneralInfo().then(() => {
this.fetchStationsGeneralInfo();
});
this.nextDataCheckTime = t + 3600000; this.nextDataCheckTime = t + 3600000;
} }