Skip to content

Commit

Permalink
feat: add transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 11, 2024
1 parent 258d72e commit 3440bb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/co/orange/ddanzi/service/AlarmService.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class AlarmService {
private final AuthUtils authUtils;
private final AlarmRepository alarmRepository;

@Transactional
public ApiResponse<?> getAlarms(){
User user = authUtils.getUser();
LocalDateTime sevenDaysAgo = LocalDateTime.now().minusDays(7);
Expand Down

0 comments on commit 3440bb6

Please sign in to comment.