schema: fix id reporting inside the command handler

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-05-18 08:25:47 +02:00
parent ca97921c52
commit 35ad802ec1

View File

@@ -31,13 +31,13 @@ function result(code, fmt, ...args) {
"status": {
"error": code,
"text": text
}
}, "id": +id
});
warn(text + "\n");
}
function result_json(status) {
ctx.call("ucentral", "result", {"id": id, "status": status});
ctx.call("ucentral", "result", {"id": +id, "status": status});
if (status.text)
warn(status.text + "\n");
if (status.resultText)