diff --git a/src/main/kotlin/com/depromeet/makers/infrastructure/gateway/NotificationGatewayImpl.kt b/src/main/kotlin/com/depromeet/makers/infrastructure/gateway/NotificationGatewayImpl.kt index 8ce6a93..9560577 100644 --- a/src/main/kotlin/com/depromeet/makers/infrastructure/gateway/NotificationGatewayImpl.kt +++ b/src/main/kotlin/com/depromeet/makers/infrastructure/gateway/NotificationGatewayImpl.kt @@ -23,4 +23,10 @@ class NotificationGatewayImpl( .findFirstByMemberIdOrderByIdDesc(memberId) ?.toDomain() } + + override fun getById(notificationId: String): Notification { + return jpaNotificationRepository + .getReferenceById(notificationId) + .let(NotificationEntity::toDomain) + } }