From 6927626c5903938052214df373209487828938c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=ED=98=B8=EC=84=B1?= Date: Mon, 17 Apr 2023 22:48:35 +0900 Subject: [PATCH] [Fix] Add tx to notification paginate (#289) [Fix] Add Tx to notification paginate --- .../service/notification/query/NotificationQueryApiService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keewe-api/src/main/java/ccc/keeweapi/service/notification/query/NotificationQueryApiService.java b/keewe-api/src/main/java/ccc/keeweapi/service/notification/query/NotificationQueryApiService.java index 65cfa19f..f8a9251c 100644 --- a/keewe-api/src/main/java/ccc/keeweapi/service/notification/query/NotificationQueryApiService.java +++ b/keewe-api/src/main/java/ccc/keeweapi/service/notification/query/NotificationQueryApiService.java @@ -14,6 +14,7 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.util.Assert; +import javax.transaction.Transactional; @Service @Slf4j @@ -30,6 +31,7 @@ public NotificationQueryApiService( .collect(Collectors.toMap(NotificationProcessor::getCategory, notificationProcessor -> notificationProcessor)); } + @Transactional public PaginateNotificationResponse paginateNotifications(CursorPageable cPage) { List notificationResponses = notificationQueryDomainService.paginateNotifications(cPage, SecurityUtil.getUser()).stream() .map(notification -> {