Skip to content

Commit 0600d77

Browse files
authored
merge: (#959) 알림 내역 내림차순 정렬 로직 추가
2 parents 8256a23 + 63ee1b3 commit 0600d77

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dms-notification/notification-core/src/main/kotlin/team/aliens/dms/domain/notification/model/Notification.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ data class Notification(
3131
NotificationOfUser(
3232
userId = userId,
3333
topic = topic,
34+
pointDetailTopic = pointDetailTopic,
3435
linkIdentifier = linkIdentifier,
3536
title = title,
3637
content = content,
@@ -46,6 +47,7 @@ data class Notification(
4647
return Notification(
4748
schoolId = notificationInfo.schoolId,
4849
topic = notificationInfo.topic,
50+
pointDetailTopic = notificationInfo.pointDetailTopic,
4951
linkIdentifier = notificationInfo.linkIdentifier,
5052
title = notificationInfo.title,
5153
content = notificationInfo.content,

dms-notification/notification-persistence/src/main/kotlin/team/aliens/dms/persistence/notification/NotificationOfPersistenceAdapterOfUser.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class NotificationOfPersistenceAdapterOfUser(
3737
queryFactory
3838
.selectFrom(notificationOfUserJpaEntity)
3939
.where(notificationOfUserJpaEntity.userId.eq(userId))
40+
.orderBy(notificationOfUserJpaEntity.createdAt.desc())
4041
.fetch().map { notificationOfUserMapper.toDomain(it)!! }
4142

4243
override fun queryNotificationOfUserById(notificationOfUserId: UUID) = notificationOfUserMapper.toDomain(

0 commit comments

Comments
 (0)