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:
ISA
2025-05-27 08:33:02 +02:00
parent 44cb27ce0f
commit 4c6386edea
9 changed files with 157 additions and 212 deletions

View File

@@ -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();
};