fixed delete LocationEntity

This commit is contained in:
grata
2023-05-07 14:02:41 +02:00
parent 7ce20e6e75
commit f2f7fb5597

View File

@@ -53,7 +53,7 @@ public class LocationService {
if(!exists){ if(!exists){
return false; return false;
} }
locationRepository.deleteByLocation(name); locationRepository.delete(getLocationByName(name));
return true; return true;
} }
} }