This commit is contained in:
2024-01-02 03:28:26 +02:00
parent b10e8b8827
commit 43e4d63d5b
10 changed files with 167 additions and 99 deletions

View File

@@ -291,10 +291,10 @@ int cworker_handler(const cworker_t* worker, int socket) {
int64_t timeout = 0;
char* name = "none";
if (jparser_bind(&parser, JVALTYPE_NUM, "id", (void *)&id) < 0) {
if (jparser_bind(&parser, JVALTYPE_INTEG, "id", (void *)&id) < 0) {
log_error("Cannot bind id");
}
if (jparser_bind(&parser, JVALTYPE_NUM, "timeout", (void *)&timeout) < 0) {
if (jparser_bind(&parser, JVALTYPE_INTEG, "timeout", (void *)&timeout) < 0) {
log_error("Cannot bind timeout");
}