refactor: add reorderCommunityCategories proc to backend

This commit is contained in:
Richard Ramos 2022-02-04 13:35:19 -04:00
parent 04e1db6b56
commit 16328823a9
1 changed files with 8 additions and 0 deletions

View File

@ -140,6 +140,14 @@ proc editCommunityChannel*(
"position": position "position": position
}]) }])
proc reorderCommunityCategories*(communityId: string, categoryId: string, position: int): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("reorderCommunityCategories".prefix, %*[
{
"communityId": communityId,
"categoryId": categoryId,
"position": position
}])
proc reorderCommunityChat*( proc reorderCommunityChat*(
communityId: string, communityId: string,
categoryId: string, categoryId: string,