Skip to content

Commit

Permalink
resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
poojakarma committed Nov 27, 2024
1 parent 9174ff5 commit 93dd142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/common/utils/constant.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export const SUCCESS_MESSAGES = {
SMS_NOTIFICATION_SEND_SUCCESSFULLY: 'SMS notification sent successfully',
TEMPLATE_CREATED_SUCESSFULLY: (userId) => `Template created successfully by userId: ${userId}`,
GET_TEMPLATE: (userId) => `Get Template successfully by userId: ${userId}`,
DELETE_TEMPLATE: (userId) => `Delete Template successfully by userId: ${userId}`
DELETE_TEMPLATE: (userId) => `Delete Template successfully by userId: ${userId}`,
MESSAGES_SAVING_IN_QUEUE: 'Notification saving in queue'
};
export const ERROR_MESSAGES = {
INVALID_REQUEST: "Invalid request",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/notification/notification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class NotificationService {
}
return { status: 200, message: SUCCESS_MESSAGES.NOTIFICATION_QUEUE_SAVE_SUCCESSFULLY };
} catch (error) {
LoggerUtil.error(ERROR_MESSAGES.NOTIFICATION_QUEUE_SAVE_FAILED, error, 'Saving in Qaueue', userId);
LoggerUtil.error(ERROR_MESSAGES.NOTIFICATION_QUEUE_SAVE_FAILED, error, SUCCESS_MESSAGES.MESSAGES_SAVING_IN_QUEUE, userId);
throw new Error(ERROR_MESSAGES.NOTIFICATION_QUEUE_SAVE_FAILED);
}
} else {
Expand Down

0 comments on commit 93dd142

Please sign in to comment.