refactor: Quellcode aufräumen

This commit is contained in:
ISA
2025-05-20 13:58:53 +02:00
parent 2846bc0b13
commit 0f899e6465
16 changed files with 44 additions and 35 deletions

View File

@@ -0,0 +1,13 @@
// /services/database/updateLocationInDatabaseService.js
export const updateLocationInDatabaseService = async (id, newLatitude, newLongitude) => {
const response = await fetch("/api/talas_v5_DB/pois/updateLocation", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ id, latitude: newLatitude, longitude: newLongitude }),
});
if (!response.ok) {
console.error("Fehler beim Aktualisieren der Position");
}
};