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].} =
|
||||
return core.callPrivateRPC("settings_getSettings")
|
||||
|
||||
proc saveSettings*(key: string, value: string | JsonNode | bool | int) {.raises: [Exception].} =
|
||||
discard core.callPrivateRPC("settings_saveSetting", %* [key, value])
|
||||
proc saveSettings*(key: string, value: string | JsonNode | bool | int): RpcResponse[JsonNode] {.raises: [Exception].} =
|
||||
let payload = %* [key, value]
|
||||
result = core.callPrivateRPC("settings_saveSetting", payload)
|
Loading…
Reference in New Issue