Skip to content

Commit

Permalink
Merge pull request #10 from poojakarma/change_status_code
Browse files Browse the repository at this point in the history
change success  status code into 200
  • Loading branch information
vaivk369 authored Aug 29, 2024
2 parents 53d3768 + 586239f commit 6fc8f07
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 6fc8f07

Please sign in to comment.