From 16328823a917b17da565ec59826ff7c8431fb8c9 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 4 Feb 2022 13:35:19 -0400 Subject: [PATCH] refactor: add reorderCommunityCategories proc to backend --- src/backend/communities.nim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/backend/communities.nim b/src/backend/communities.nim index 94fcfcc865..d0035a8388 100644 --- a/src/backend/communities.nim +++ b/src/backend/communities.nim @@ -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,