refactor(communities): add getAllCommunities function (#133)

This commit is contained in:
Jonathan Rainville 2021-12-15 09:26:14 -05:00 committed by saledjenic
parent bc3d85bad1
commit 3326813d77
1 changed files with 4 additions and 1 deletions

View File

@ -6,4 +6,7 @@ export response_type
proc getJoinedComunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
let payload = %* []
result = callPrivateRPC("joinedCommunities".prefix, payload)
result = callPrivateRPC("joinedCommunities".prefix, payload)
proc getAllCommunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
result = callPrivateRPC("communities".prefix)