Skip to content

Commit

Permalink
fix: Notification getId 추가 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin committed Jun 16, 2024
1 parent 0fdfcb5 commit 8cbe7c3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,10 @@ class NotificationGatewayImpl(
.findFirstByMemberIdOrderByIdDesc(memberId)
?.toDomain()
}

override fun getById(notificationId: String): Notification {
return jpaNotificationRepository
.getReferenceById(notificationId)
.let(NotificationEntity::toDomain)
}
}

0 comments on commit 8cbe7c3

Please sign in to comment.