chore: fix last commit
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cd40c1dda4
commit
5dda11f170
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user