refactor: add reorderCommunityCategories proc to backend
This commit is contained in:
parent
04e1db6b56
commit
16328823a9
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue