From 1c5f8b173173697f8dfa286cee81573c3c176910 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Wed, 2 Mar 2022 16:19:34 -0300 Subject: [PATCH] Chore: Migrate REST API - sendConfirmationEmail to Typescript (#3807) --- app/lib/rocketchat/services/restApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index 75c80c6b..5e81a691 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -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