Skip to content

Commit b78c70c

Browse files
authored
Fix: 알림 삭제 api 에러 수정
1 parent 31affde commit b78c70c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/memesphere/domain/notification/service/CoinNotificationServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public String modifyNotification(Long notificationId) {
7777
@Override
7878
public NotificationListResponse removeNotification(Long notificationId) {
7979

80-
MemeCoin memeCoin = memeCoinRepository.findById(notificationId)
81-
.orElseThrow(() -> new GeneralException(ErrorStatus.MEMECOIN_NOT_FOUND));
80+
Notification existingNotification = notificationRepository.findById(notificationId)
81+
.orElseThrow(() -> new GeneralException(ErrorStatus.NOTIFICATION_NOT_FOUND));
8282

8383
notificationRepository.deleteById(notificationId);
8484

0 commit comments

Comments
 (0)