mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Merge pull request #113 from Spythere/development
hotfix: data fetching
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user