Chore: Migrate REST API - toggleBlockUser to Typescript (#3808)

This commit is contained in:
Reinaldo Neto 2022-03-03 14:52:00 -03:00 committed by GitHub
parent 399cdac452
commit 9751cc4426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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<boolean> => {
if (block) {
// RC 0.49.0
return sdk.methodCallWrapper('blockUser', { rid, blocked });