feat(api): delete marker endpoint

This commit is contained in:
2026-07-02 19:37:27 +01:00
parent b8b4d3b05c
commit fe735faba8
5 changed files with 82 additions and 19 deletions

View File

@@ -72,6 +72,11 @@ public class MarkerService {
return markerRepository.saveAndFlush(marker);
}
public void deleteMarker(Long id) {
Marker marker = getMarkerById(id);
markerRepository.delete(marker);
}
@Scheduled(fixedDelay = 360_000)
@Transactional
public void deleteOldMarkers() {