UBERF-5274 (#4518)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-02-05 14:34:41 +06:00 committed by GitHub
parent bbcead8241
commit a1f64176fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}