Skip to content

Commit b90310c

Browse files
committed
feat(NotificationHandlerImpl): 트랜잭션 추가
- DB save 작업
1 parent d6d9565 commit b90310c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/somemore/notification/handler/NotificationHandlerImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
import com.somemore.sse.usecase.SseUseCase;
99
import lombok.RequiredArgsConstructor;
1010
import org.springframework.stereotype.Component;
11+
import org.springframework.transaction.annotation.Transactional;
1112

1213
@Component
1314
@RequiredArgsConstructor
15+
@Transactional
1416
public class NotificationHandlerImpl implements NotificationHandler {
1517

1618
private final NotificationRepository notificationRepository;

0 commit comments

Comments
 (0)