correct error on settings delete unexisting index

This commit is contained in:
mpostma 2021-03-11 22:33:31 +01:00
parent 30dd790884
commit 66b64c1f80
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
3 changed files with 13 additions and 8 deletions

View file

@ -23,9 +23,10 @@ impl Data {
pub async fn update_settings(
&self,
index: String,
settings: Settings
settings: Settings,
create: bool,
) -> anyhow::Result<UpdateStatus> {
let update = self.index_controller.update_settings(index, settings).await?;
let update = self.index_controller.update_settings(index, settings, create).await?;
Ok(update.into())
}