mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 05:13:06 +00:00
Do not try to match $search key (#716)
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
parent
4214d62da6
commit
d115f4c5f8
@ -83,6 +83,7 @@ export class LiveQuery extends TxProcessor implements Client {
|
|||||||
}
|
}
|
||||||
const query = q.query
|
const query = q.query
|
||||||
for (const key in query) {
|
for (const key in query) {
|
||||||
|
if (key === '$search') continue
|
||||||
if (key === '_id' && ((query._id as any)?.$like === undefined || query._id === undefined)) continue
|
if (key === '_id' && ((query._id as any)?.$like === undefined || query._id === undefined)) continue
|
||||||
const value = (query as any)[key]
|
const value = (query as any)[key]
|
||||||
const result = findProperty([doc], key, value)
|
const result = findProperty([doc], key, value)
|
||||||
|
Loading…
Reference in New Issue
Block a user