Skip to content

Commit

Permalink
Chore: Migrate REST API - sendConfirmationEmail to Typescript (#3807)
Browse files Browse the repository at this point in the history
  • Loading branch information
reinaldonetof authored Mar 2, 2022
1 parent cb8d4be commit 1c5f8b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/rocketchat/services/restApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export const forgotPassword = (email: string): any =>
// @ts-ignore
sdk.post('users.forgotPassword', { email });

export const sendConfirmationEmail = (email: string) => sdk.methodCallWrapper('sendConfirmationEmail', email);
export const sendConfirmationEmail = (email: string): Promise<{ message: string; success: boolean }> =>
sdk.methodCallWrapper('sendConfirmationEmail', email);

export const spotlight = (search: string, usernames: string, type: { users: boolean; rooms: boolean }) =>
// RC 0.51.0
Expand Down

0 comments on commit 1c5f8b1

Please sign in to comment.