#22

Fusionado
sunkean fusionadas 1 achegas de sunkean/dev en sunkean/master %!s(int64=2) %!d(string=hai) anos

+ 1 - 1
src/main/java/com/izouma/meta/repo/MetaScheduledFutureRepo.java

@@ -12,7 +12,7 @@ public interface MetaScheduledFutureRepo extends JpaRepository<MetaScheduledFutu
 
     MetaScheduledFuture findByTypeAndTaskId(ScheduledFutureType type, String taskId);
 
-    @Query("delete from MetaScheduledFuture m where m.type = ?1 and m.taskId = ?2")
+    @Query(value = "delete from meta_scheduled_future where m.type = ?1 and m.task_id = ?2", nativeQuery = true)
     void deleteByTypeAndTaskId(ScheduledFutureType type, String taskId);
 
     List<MetaScheduledFuture> findAllByType(ScheduledFutureType type);