Bugfix - Fixed live queries to respect filters (#2192)

This commit is contained in:
Bibaswan Bhawal 2023-06-27 16:42:18 -07:00 committed by GitHub
parent 73a4e54ad5
commit 8ae8770812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ impl<'a> Document<'a> {
// Create a new statement // Create a new statement
let lq = Statement::from(lv); let lq = Statement::from(lv);
// Check LIVE SELECT where condition // Check LIVE SELECT where condition
if self.check(ctx, opt, stm).await.is_err() { if self.check(ctx, opt, &lq).await.is_err() {
continue; continue;
} }
// Check what type of data change this is // Check what type of data change this is