We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31affde commit b78c70cCopy full SHA for b78c70c
src/main/java/com/memesphere/domain/notification/service/CoinNotificationServiceImpl.java
@@ -77,8 +77,8 @@ public String modifyNotification(Long notificationId) {
77
@Override
78
public NotificationListResponse removeNotification(Long notificationId) {
79
80
- MemeCoin memeCoin = memeCoinRepository.findById(notificationId)
81
- .orElseThrow(() -> new GeneralException(ErrorStatus.MEMECOIN_NOT_FOUND));
+ Notification existingNotification = notificationRepository.findById(notificationId)
+ .orElseThrow(() -> new GeneralException(ErrorStatus.NOTIFICATION_NOT_FOUND));
82
83
notificationRepository.deleteById(notificationId);
84
0 commit comments