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
+1 -5
View File
@@ -59,11 +59,7 @@ export const useApiStore = defineStore('apiStore', {
if (t >= this.nextDataCheckTime) {
this.fetchDonatorsData();
this.fetchVehiclesInfo();
// Revalidation after staling
this.fetchStationsGeneralInfo().then(() => {
this.fetchStationsGeneralInfo();
});
this.fetchStationsGeneralInfo();
this.nextDataCheckTime = t + 3600000;
}