From b250392e8da758e920ac2213079590a7bb974e4e Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 27 Oct 2021 17:52:53 +0200 Subject: [PATCH] remove the first - in the path to the db instance in the instance-id --- meilisearch-http/src/analytics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/analytics.rs b/meilisearch-http/src/analytics.rs index f3b0367f7..175f53c24 100644 --- a/meilisearch-http/src/analytics.rs +++ b/meilisearch-http/src/analytics.rs @@ -27,7 +27,7 @@ fn config_user_id_path(db_path: &Path) -> Option { .replace("/", "-") }) .zip(MEILISEARCH_CONFIG_PATH.as_ref()) - .map(|(filename, config_path)| config_path.join(filename)) + .map(|(filename, config_path)| config_path.join(filename.trim_start_matches('-'))) } /// Look for the instance-uid in the `data.ms` or in `~/.config/MeiliSearch/path-to-db-instance-uid`