review changes

This commit is contained in:
marin postma 2021-06-21 13:57:32 +02:00
parent 763ee521be
commit 56686dee40
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
10 changed files with 24 additions and 23 deletions

View file

@ -330,10 +330,10 @@ impl IndexController {
pub async fn update_index(
&self,
uid: String,
index_settings: IndexSettings,
mut index_settings: IndexSettings,
) -> Result<IndexMetadata> {
if index_settings.uid.is_some() {
todo!("Can't change the index uid.")
index_settings.uid.take();
}
let uuid = self.uuid_resolver.get(uid.clone()).await?;