From 586239f93033b6a300aa67c9179ab0d727e6a012 Mon Sep 17 00:00:00 2001
From: poojakarma <pooja.karma@tekditechnologies.com>
Date: Thu, 29 Aug 2024 12:35:03 +0530
Subject: [PATCH] change sucess  status code into 200

---
 src/modules/notification/adapters/emailService.adapter.ts | 2 +-
 src/modules/notification/adapters/pushService.adapter.ts  | 2 +-
 src/modules/notification/adapters/smsService.adapter.ts   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/notification/adapters/emailService.adapter.ts b/src/modules/notification/adapters/emailService.adapter.ts
index 51f3e8f..22f972e 100644
--- a/src/modules/notification/adapters/emailService.adapter.ts
+++ b/src/modules/notification/adapters/emailService.adapter.ts
@@ -30,7 +30,7 @@ export class EmailAdapter implements NotificationServiceInterface {
                 if (result.status === 'success') {
                     results.push({
                         recipient: recipient,
-                        status: 'success',
+                        status: 200,
                         result: 'Email notification sent successfully'
                     });
                 } else {
diff --git a/src/modules/notification/adapters/pushService.adapter.ts b/src/modules/notification/adapters/pushService.adapter.ts
index e6352a3..03beaa0 100644
--- a/src/modules/notification/adapters/pushService.adapter.ts
+++ b/src/modules/notification/adapters/pushService.adapter.ts
@@ -35,7 +35,7 @@ export class PushAdapter implements NotificationServiceInterface {
                 if (result.data.success === 1) {
                     results.push({
                         recipient: notificationData.recipient,
-                        status: 'success',
+                        status: 200,
                         result: 'Push notification sent successfully'
                     });
                 } else if (result.data.failure === 1) {
diff --git a/src/modules/notification/adapters/smsService.adapter.ts b/src/modules/notification/adapters/smsService.adapter.ts
index 60c84c0..01ed8b1 100644
--- a/src/modules/notification/adapters/smsService.adapter.ts
+++ b/src/modules/notification/adapters/smsService.adapter.ts
@@ -50,7 +50,7 @@ export class SmsAdapter implements NotificationServiceInterface {
                 // return result;
                 results.push({
                     recipient: recipient,
-                    status: 'success',
+                    status: 200,
                     result: "SMS notification sent successfully",
                 });
             } catch (error) {