Chore: Migrate REST API - toggleBlockUser to Typescript (#3808)
This commit is contained in:
parent
399cdac452
commit
9751cc4426
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue