From 3440bb6db99ea91a8acf56f3eca9c04da46dcdeb Mon Sep 17 00:00:00 2001 From: kang Date: Thu, 12 Sep 2024 02:02:16 +0900 Subject: [PATCH] feat: add transactional --- src/main/java/co/orange/ddanzi/service/AlarmService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/co/orange/ddanzi/service/AlarmService.java b/src/main/java/co/orange/ddanzi/service/AlarmService.java index 0f71caf0..7b9ae680 100644 --- a/src/main/java/co/orange/ddanzi/service/AlarmService.java +++ b/src/main/java/co/orange/ddanzi/service/AlarmService.java @@ -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);