Skip to content

Commit

Permalink
[Fix] Add tx to notification paginate (#289)
Browse files Browse the repository at this point in the history
[Fix] Add Tx to notification paginate
  • Loading branch information
Youhoseong authored Apr 17, 2023
1 parent 37234ec commit 6927626
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,6 +31,7 @@ public NotificationQueryApiService(
.collect(Collectors.toMap(NotificationProcessor::getCategory, notificationProcessor -> notificationProcessor));
}

@Transactional
public PaginateNotificationResponse paginateNotifications(CursorPageable<Long> cPage) {
List<NotificationResponse> notificationResponses = notificationQueryDomainService.paginateNotifications(cPage, SecurityUtil.getUser()).stream()
.map(notification -> {
Expand Down

0 comments on commit 6927626

Please sign in to comment.