Keep name consistent with others

This commit is contained in:
Mubelotix 2025-06-27 09:40:30 +02:00
parent c15763f910
commit fb9170b8e3
No known key found for this signature in database
GPG key ID: 0406DF6C3A69B942
2 changed files with 2 additions and 2 deletions

View file

@ -351,7 +351,7 @@ pub struct IndexSearchRules {
fn generate_default_keys(store: &HeedAuthStore) -> Result<()> { fn generate_default_keys(store: &HeedAuthStore) -> Result<()> {
store.put_api_key(Key::default_chat())?; store.put_api_key(Key::default_chat())?;
store.put_api_key(Key::default_read_only_admin_key())?; store.put_api_key(Key::default_read_only_admin())?;
store.put_api_key(Key::default_admin())?; store.put_api_key(Key::default_admin())?;
store.put_api_key(Key::default_search())?; store.put_api_key(Key::default_search())?;

View file

@ -144,7 +144,7 @@ impl Key {
} }
} }
pub fn default_read_only_admin_key() -> Self { pub fn default_read_only_admin() -> Self {
let now = OffsetDateTime::now_utc(); let now = OffsetDateTime::now_utc();
let uid = Uuid::new_v4(); let uid = Uuid::new_v4();
Self { Self {