From 73559981c38f3a146104882d0ca7601b5f7f71e7 Mon Sep 17 00:00:00 2001
From: sknirmalkar89 <59080585+sknirmalkar89@users.noreply.github.com>
Date: Wed, 5 Jan 2022 11:54:01 +0530
Subject: [PATCH] SB-27940:Soft delete to the notification in-app notification
 feed  (#1028)

* SB-28268:Old delete api from is not working
---
 .../org/sunbird/client/NotificationServiceClient.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/service/src/main/java/org/sunbird/client/NotificationServiceClient.java b/service/src/main/java/org/sunbird/client/NotificationServiceClient.java
index f627af662..9d1f77c26 100644
--- a/service/src/main/java/org/sunbird/client/NotificationServiceClient.java
+++ b/service/src/main/java/org/sunbird/client/NotificationServiceClient.java
@@ -105,7 +105,7 @@ public class NotificationServiceClient {
             Response response = mapper.readValue(responseStr, Response.class);
             return response;
         }  catch (Exception ex) {
-            logger.error(context, "FeedServiceImpl:insert Exception occurred while mapping.", ex);
+            logger.error(context, "FeedServiceImpl:readV1Notification Exception occurred while mapping.", ex);
             ProjectCommonException.throwServerErrorException(ResponseCode.SERVER_ERROR);
         }
 
@@ -119,17 +119,17 @@ public class NotificationServiceClient {
      * @return
      */
     public Response  deleteV1Notification(Request reqObj, RequestContext context) {
-        logger.debug(context, "NotificationServiceClient:readV1Notification method called : ");
+        logger.debug(context, "NotificationServiceClient:deleteV1Notification method called : ");
 
-        String serviceUrl = getServiceApiUrl(JsonKey.NOTIFICATION_SERVICE_V1_READ_URL);
+        String serviceUrl = getServiceApiUrl(JsonKey.NOTIFICATION_SERVICE_V1_DELETE_URL);
         logger.debug(
                 context,
-                "NotificationServiceClient:readV1Notification :: calling notification service URL :" + serviceUrl);
+                "NotificationServiceClient:deleteV1Notification :: calling notification service URL :" + serviceUrl);
         try {
             Response response = callCreateOrDeleteNotificationService(reqObj, context, serviceUrl);
             return response;
         }  catch (Exception ex) {
-            logger.error(context, "FeedServiceImpl:insert Exception occurred while mapping.", ex);
+            logger.error(context, "FeedServiceImpl:deleteV1Notification Exception occurred while mapping.", ex);
             ProjectCommonException.throwServerErrorException(ResponseCode.SERVER_ERROR);
         }
 
-- 
GitLab