refactor(utils): saveLineData entfernt und durch Redux-Thunk ersetzt
- updatePolylineCoordinatesThunk in markerUtils.js und poiUtils.js eingebunden - zentrale Hilfsfunktion savePolylineRedux erstellt - fetch() entfernt, Version auf 1.1.183 erhöht
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// /services/database/locationDevice/fetchLocationDevicesService.js
|
||||
|
||||
export const fetchLocationDevicesService = async () => {
|
||||
const response = await fetch("/api/talas_v5_DB/locationDevice/locationDevices");
|
||||
|
||||
if (!response.ok) {
|
||||
const error = await response.json();
|
||||
throw new Error(error.message || "Fehler beim Abrufen der Gerätedaten");
|
||||
}
|
||||
|
||||
return await response.json();
|
||||
};
|
||||
Reference in New Issue
Block a user