Skip to content

Commit

Permalink
10553: Add typing to new notification type;
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cruz committed Dec 3, 2024
1 parent f6121f4 commit 8e77cb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const verifyUserPendingEmailInteractor = async (
clientConnectionId,
message: {
action: 'set_verify_email_notification',
message: 'Something wrong with user',
},
userId: (authorizedUser as UnknownAuthUser)?.userId!,
});
Expand Down Expand Up @@ -68,7 +67,6 @@ export const verifyUserPendingEmailInteractor = async (
clientConnectionId,
message: {
action: 'set_verify_email_notification',
message: 'Tokens do not match',
},
userId: user.userId,
});
Expand Down Expand Up @@ -106,7 +104,6 @@ export const verifyUserPendingEmailInteractor = async (
clientConnectionId,
message: {
action: 'set_verify_email_notification',
message: 'Email is not available',
},
userId: user.userId,
});
Expand Down
5 changes: 3 additions & 2 deletions web-api/src/notifications/sendNotificationToUserTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ type UserContactUpdateErrorNotification = {

type SetVerifyEmailNotification = {
action: 'set_verify_email_notification';
messageType?: string;
messageType?: 'expiredToken' | 'succes';
};

export type NotificationMessage =
Expand Down Expand Up @@ -215,4 +215,5 @@ export type NotificationMessage =
| SetTrialSessionCalendarErrorNotification
| UpdateTrialSessionCompleteNotification
| UserContactInitialUpdateCompleteNotification
| UserContactUpdateErrorNotification;
| UserContactUpdateErrorNotification
| SetVerifyEmailNotification;

0 comments on commit 8e77cb4

Please sign in to comment.