Skip to content

v0.2.48..v0.2.49 changeset DeleteMapResourcesCommand.java

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java b/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
index 439d01f..c63a7dd 100644
--- a/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
+++ b/hoot-services/src/main/java/hoot/services/controllers/osm/map/DeleteMapResourcesCommand.java
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2016, 2017, 2018 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
  */
 package hoot.services.controllers.osm.map;
 
@@ -90,7 +90,7 @@ public class DeleteMapResourcesCommand implements InternalCommand {
 
     private static void deleteOSMRecordByName(Long mapId) {
         deleteMapRelatedTablesByMapId(mapId);
-        createQuery().delete(maps).where(maps.id.eq(mapId)).execute();
+        DbUtils.deleteMap(mapId);
     }
 
     private static void deleteBookmarksBy(Long mapId) {
Clone this wiki locally