handle cases where the id is nil

This commit is contained in:
Richard Ramos 2021-05-17 14:33:59 -04:00 committed by Iuri Matias
parent 0fa9064481
commit 0b4c465f51
1 changed files with 1 additions and 1 deletions

View File

@ -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: ""
} }
} }