diff --git a/src/rocket_api.rs b/src/rocket_api.rs index 783acae..32c4383 100644 --- a/src/rocket_api.rs +++ b/src/rocket_api.rs @@ -98,7 +98,7 @@ fn put_settings(db: State, _admin_rights: AdminRights, config: Json) } #[post("/trigger_index")] -fn trigger_index(command_sender: State>) -> Result<(), errors::Error> { +fn trigger_index(command_sender: State>, _admin_rights: AdminRights) -> Result<(), errors::Error> { command_sender.trigger_reindex()?; Ok(()) }