From 351ad32d772231a3fcc27318992522ffd84bfb63 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 28 Oct 2021 12:29:32 +0200 Subject: [PATCH] fix the index_creation boolean --- meilisearch-http/src/routes/indexes/documents.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch-http/src/routes/indexes/documents.rs b/meilisearch-http/src/routes/indexes/documents.rs index 932861f36..d0e81e3da 100644 --- a/meilisearch-http/src/routes/indexes/documents.rs +++ b/meilisearch-http/src/routes/indexes/documents.rs @@ -143,7 +143,7 @@ pub async fn add_documents( analytics.add_documents( ¶ms, - meilisearch.get_index(path.index_uid.clone()).await.is_ok(), + meilisearch.get_index(path.index_uid.clone()).await.is_err(), &req, ); @@ -174,7 +174,7 @@ pub async fn update_documents( analytics.update_documents( ¶ms, - meilisearch.get_index(path.index_uid.clone()).await.is_ok(), + meilisearch.get_index(path.index_uid.clone()).await.is_err(), &req, );