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) {