refactor: settings updated
This commit is contained in:
parent
9ada3bf23c
commit
e1ba033633
|
@ -6,5 +6,6 @@ export response_type
|
||||||
proc getSettings*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
proc getSettings*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
return core.callPrivateRPC("settings_getSettings")
|
return core.callPrivateRPC("settings_getSettings")
|
||||||
|
|
||||||
proc saveSettings*(key: string, value: string | JsonNode | bool | int) {.raises: [Exception].} =
|
proc saveSettings*(key: string, value: string | JsonNode | bool | int): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||||
discard core.callPrivateRPC("settings_saveSetting", %* [key, value])
|
let payload = %* [key, value]
|
||||||
|
result = core.callPrivateRPC("settings_saveSetting", payload)
|
Loading…
Reference in New Issue