mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-27 14:06:27 +00:00 
			
		
		
		
	Implement the status and type filtering on the tasks route
This commit is contained in:
		| @@ -131,6 +131,17 @@ impl Index<'_> { | ||||
|         self.service.get(url).await | ||||
|     } | ||||
|  | ||||
|     pub async fn filtered_tasks(&self, type_: &[&str], status: &[&str]) -> (Value, StatusCode) { | ||||
|         let mut url = format!("/tasks?indexUid={}", self.uid); | ||||
|         if !type_.is_empty() { | ||||
|             url += &format!("&type={}", type_.join(",")); | ||||
|         } | ||||
|         if !status.is_empty() { | ||||
|             url += &format!("&status={}", status.join(",")); | ||||
|         } | ||||
|         self.service.get(url).await | ||||
|     } | ||||
|  | ||||
|     pub async fn get_document( | ||||
|         &self, | ||||
|         id: u64, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user