handle cases where the id is nil
This commit is contained in:
parent
0fa9064481
commit
0b4c465f51
|
@ -188,7 +188,7 @@ QtObject:
|
||||||
"error": errorMessage,
|
"error": errorMessage,
|
||||||
"result": {
|
"result": {
|
||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"id": data.payload.id,
|
"id": if data.payload.id == nil: newJNull() else: data.payload.id,
|
||||||
"result": if (success): response else: ""
|
"result": if (success): response else: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue