Merge pull request #113 from Spythere/development

hotfix: data fetching
This commit is contained in:
Spythere
2024-10-02 14:59:34 +02:00
committed by GitHub
-4
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();
// Revalidation after staling
this.fetchStationsGeneralInfo().then(() => {
this.fetchStationsGeneralInfo(); this.fetchStationsGeneralInfo();
});
this.nextDataCheckTime = t + 3600000; this.nextDataCheckTime = t + 3600000;
} }