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

@@ -1,7 +1,7 @@
// utils/setupPOIs.js
import { findClosestPoints } from "./geometryUtils";
import handlePoiSelect from "./handlePoiSelect";
import { updateLocationInDatabase } from "../services/database/updateLocationInDatabase";
import { updateLocationInDatabaseService } from "../services/database/updateLocationInDatabaseService";
import { handleEditPoi, insertNewPOI, removePOI } from "./poiUtils";
import { parsePoint } from "./geometryUtils";
import circleIcon from "../components/gisPolylines/icons/CircleIcon";
@@ -120,7 +120,7 @@ export const setupPOIs = async (
const newLat = e.target.getLatLng().lat;
const newLng = e.target.getLatLng().lng;
const markerId = e.target.options.id;
updateLocationInDatabase(markerId, newLat, newLng).then(() => {});
updateLocationInDatabaseService(markerId, newLat, newLng).then(() => {});
} else {
console.error("Drag operation not allowed");
}