mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
UBERF-5274 (#4518)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
bbcead8241
commit
a1f64176fd
@ -659,7 +659,8 @@ export class LiveQuery extends TxProcessor implements Client {
|
||||
|
||||
// Check if query is partially matched.
|
||||
private async matchQuery (q: Query, tx: TxUpdateDoc<Doc>, docCache?: Map<string, Doc>): Promise<boolean> {
|
||||
if (!this.client.getHierarchy().isDerived(tx.objectClass, q._class)) {
|
||||
const clazz = this.getHierarchy().isMixin(q._class) ? this.getHierarchy().getBaseClass(q._class) : q._class
|
||||
if (!this.client.getHierarchy().isDerived(tx.objectClass, clazz)) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user