chore: fix last commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Andre Henriques 2023-07-09 19:55:56 +01:00
parent cd40c1dda4
commit 5dda11f170

View File

@ -145,7 +145,12 @@ fn is_configured(conn: &Conn) -> Result<bool, String> {
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")]