From 5dda11f170339ae01488df8889b6abe65e60a625 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 9 Jul 2023 19:55:56 +0100 Subject: [PATCH] chore: fix last commit --- src/configure.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/configure.rs b/src/configure.rs index e19b174..2a85765 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -145,7 +145,12 @@ fn is_configured(conn: &Conn) -> Result { return Err(json!(ApiResponse {code: 500, message: "Change something is very wrong!".to_string()}).to_string()); } - return Ok(version_iter.next().unwrap().unwrap().configured); + for data in version_iter { + if data.unwrap().configured { + return Ok(true); + } + } + return Ok(false); } #[get("/configure")]