From 9751cc442678f586f808bd72057f9182759c59e4 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Thu, 3 Mar 2022 14:52:00 -0300 Subject: [PATCH] Chore: Migrate REST API - toggleBlockUser to Typescript (#3808) --- app/lib/rocketchat/services/restApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index a0e1ab5ca..e0dd6461c 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -447,7 +447,7 @@ export const getListCannedResponse = ({ scope = '', departmentId = '', offset = return sdk.get('canned-responses', params); }; -export const toggleBlockUser = (rid: string, blocked: string, block: boolean) => { +export const toggleBlockUser = (rid: string, blocked: string, block: boolean): Promise => { if (block) { // RC 0.49.0 return sdk.methodCallWrapper('blockUser', { rid, blocked });