diff --git a/src/main.rs b/src/main.rs index e2e3028..8385a79 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,7 +136,7 @@ async fn get_uncrawled_links(db: &Surreal, mut count: usize, param: Stri trace!("Getting uncrawled links"); let mut response = db - .query("SELECT * FROM website WHERE crawled = false AND site ~ type::string($format) LIMIT $count;") + .query("SELECT * FROM website WHERE crawled = false AND site CONTAINS type::string($format) LIMIT $count;") .bind(("format", param)) .bind(("count", count)) .await