refactor: add reorderCommunityCategories proc to backend
This commit is contained in:
parent
04e1db6b56
commit
16328823a9
|
@ -140,6 +140,14 @@ proc editCommunityChannel*(
|
|||
"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*(
|
||||
communityId: string,
|
||||
categoryId: string,
|
||||
|
|
Loading…
Reference in New Issue