diff --git a/idle-application/src/main/kotlin/com/swm/idle/application/notification/facade/NotificationFacadeService.kt b/idle-application/src/main/kotlin/com/swm/idle/application/notification/facade/NotificationFacadeService.kt index a4d7f648..0bd8783f 100644 --- a/idle-application/src/main/kotlin/com/swm/idle/application/notification/facade/NotificationFacadeService.kt +++ b/idle-application/src/main/kotlin/com/swm/idle/application/notification/facade/NotificationFacadeService.kt @@ -19,6 +19,7 @@ class NotificationFacadeService( private val notificationDetailsConverter: NotificationDetailsConverter, ) { + @Transactional fun readNotification(notificationId: UUID) { val notification = notificationService.getById(notificationId) diff --git a/idle-domain/src/main/kotlin/com/swm/idle/domain/notification/repository/querydsl/NotificationQueryRepository.kt b/idle-domain/src/main/kotlin/com/swm/idle/domain/notification/repository/querydsl/NotificationQueryRepository.kt index 0b4dc2c2..c9bb7505 100644 --- a/idle-domain/src/main/kotlin/com/swm/idle/domain/notification/repository/querydsl/NotificationQueryRepository.kt +++ b/idle-domain/src/main/kotlin/com/swm/idle/domain/notification/repository/querydsl/NotificationQueryRepository.kt @@ -38,7 +38,7 @@ class NotificationQueryRepository( .and(next?.let { notification.id.goe(it) }) .and(notification.entityStatus.eq(EntityStatus.ACTIVE)) ) - .orderBy(notification.createdAt.desc()) + .orderBy(notification.id.desc()) .limit(limit) .fetch() }