Skip to content

Commit

Permalink
bugfix The annotation @transactional specifies rollbackFor. (#1643)
Browse files Browse the repository at this point in the history
Co-authored-by: vinci <1552443053@qq.com>
  • Loading branch information
handy-git and leo-934 authored Mar 17, 2024
1 parent 98c8e13 commit 49455d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public interface PushMetricsDao extends JpaRepository<PushMetrics, Long> {

PushMetrics findFirstByMonitorIdOrderByTimeDesc(Long monitorId);
@Transactional

@Transactional(rollbackFor = Exception.class)
void deleteAllByTimeBefore(Long time);
}

0 comments on commit 49455d5

Please sign in to comment.