From ba7500998e1a7a9e46df1a44d8dc10b7df0b4505 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Thu, 21 Nov 2024 17:59:31 +0100 Subject: [PATCH] Fix getting a single batch through the GET route --- crates/meilisearch/src/routes/batches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/meilisearch/src/routes/batches.rs b/crates/meilisearch/src/routes/batches.rs index d01bd5965..6faedc021 100644 --- a/crates/meilisearch/src/routes/batches.rs +++ b/crates/meilisearch/src/routes/batches.rs @@ -34,7 +34,7 @@ async fn get_batch( } }; - let query = index_scheduler::Query { uids: Some(vec![batch_uid]), ..Query::default() }; + let query = index_scheduler::Query { batch_uids: Some(vec![batch_uid]), ..Query::default() }; let filters = index_scheduler.filters(); let (batches, _) = index_scheduler.get_batches_from_authorized_indexes(query, filters)?;