QFix: Connection should restore boolean query fields (#5508)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-05-04 17:16:35 +07:00 committed by GitHub
parent 3fd11fbf79
commit 6fc501fdaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -586,7 +586,7 @@ class Connection implements ClientConnection {
doc._class = _class
}
for (const [k, v] of Object.entries(query)) {
if (typeof v === 'string' || typeof v === 'number') {
if (typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean') {
if (doc[k] == null) {
doc[k] = v
}