mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-29 03:21:13 +00:00
QFix: Connection should restore boolean query fields (#5508)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
3fd11fbf79
commit
6fc501fdaf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user