mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Merge pull request #60 (hotfix)
hotfix: maksymalny timeout dyżurnych (1.18.1)
This commit is contained in:
@@ -135,6 +135,9 @@ export const useStore = defineStore('store', {
|
||||
.reduce((list, apiStation) => {
|
||||
if (apiStation.region != state.region.id) return list;
|
||||
|
||||
if (apiStation.isOnline !== 1 && Date.now() - apiStation.lastSeen > 1000 * 60 * 3)
|
||||
return list;
|
||||
|
||||
const dispatcherStatus = getDispatcherStatus(state as StoreState, apiStation);
|
||||
|
||||
if (dispatcherStatus.statusID == DispatcherStatusID.Unknown) return list;
|
||||
|
||||
Reference in New Issue
Block a user