From 9a8fb6c55a43c090490ed401fcb0667cd81e9c80 Mon Sep 17 00:00:00 2001 From: janithPet Date: Wed, 15 Jun 2022 17:27:41 +0100 Subject: [PATCH] Updated actions identifiers to be in a more pleasing order --- meilisearch-auth/src/action.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/meilisearch-auth/src/action.rs b/meilisearch-auth/src/action.rs index 674ed4824..5d79fea7c 100644 --- a/meilisearch-auth/src/action.rs +++ b/meilisearch-auth/src/action.rs @@ -104,19 +104,19 @@ impl Action { pub mod actions { pub(crate) const ALL: u8 = 0; pub const SEARCH: u8 = 1; - pub const DOCUMENTS_ALL: u8 = 20; - pub const DOCUMENTS_ADD: u8 = 2; - pub const DOCUMENTS_GET: u8 = 3; - pub const DOCUMENTS_DELETE: u8 = 4; - pub const INDEXES_CREATE: u8 = 5; - pub const INDEXES_GET: u8 = 6; - pub const INDEXES_UPDATE: u8 = 7; - pub const INDEXES_DELETE: u8 = 8; - pub const TASKS_GET: u8 = 9; - pub const SETTINGS_GET: u8 = 10; - pub const SETTINGS_UPDATE: u8 = 11; - pub const STATS_GET: u8 = 12; - pub const DUMPS_CREATE: u8 = 13; + pub const DOCUMENTS_ALL: u8 = 2; + pub const DOCUMENTS_ADD: u8 = 3; + pub const DOCUMENTS_GET: u8 = 4; + pub const DOCUMENTS_DELETE: u8 = 5; + pub const INDEXES_CREATE: u8 = 6; + pub const INDEXES_GET: u8 = 7; + pub const INDEXES_UPDATE: u8 = 8; + pub const INDEXES_DELETE: u8 = 9; + pub const TASKS_GET: u8 = 10; + pub const SETTINGS_GET: u8 = 11; + pub const SETTINGS_UPDATE: u8 = 12; + pub const STATS_GET: u8 = 13; + pub const DUMPS_CREATE: u8 = 14; pub const VERSION: u8 = 15; pub const KEYS_CREATE: u8 = 16; pub const KEYS_GET: u8 = 17;