Skip to content

Commit

Permalink
change sucess status code into 200
Browse files Browse the repository at this point in the history
  • Loading branch information
poojakarma committed Aug 29, 2024
1 parent 53d3768 commit 586239f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/notification/adapters/emailService.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/notification/adapters/pushService.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/notification/adapters/smsService.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 586239f

Please sign in to comment.