fix: fix json.arrappend not allowing passing JSON objects (#1867)

Signed-off-by: Uku Loskit <ukuloskit@gmail.com>
This commit is contained in:
Uku Loskit 2023-09-16 12:27:20 +03:00 committed by GitHub
parent 82050248b0
commit 7a5fe1adc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 7 deletions

View file

@ -1375,12 +1375,6 @@ void JsonFamily::ArrAppend(CmdArgList args, ConnectionContext* cntx) {
(*cntx)->SendError(kSyntaxErr);
return;
}
if (converted_val->is_object()) {
(*cntx)->SendError(kWrongTypeErr);
return;
}
append_values.emplace_back(converted_val);
}