diff --git a/src/configure.rs b/src/configure.rs index 772b3ce..e18dc2b 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -88,6 +88,7 @@ fn get_conn(db: &State) -> Result { fn prepare_statement<'a>(conn: &'a Conn, stat: &str) -> Result, String> { let stmt = conn.prepare(stat); if stmt.is_err() || stmt.as_ref().ok().is_none() { + println!("stmt: {}", stat); return Err(get_error_message("Could not construct statetment")); } let stmt: Statement<'a> = stmt.unwrap(); @@ -142,7 +143,7 @@ pub async fn get_configure(db: &State) -> String { return get_error_message("Not yet configured"); } - let stmt = prepare_statement(&conn, "SELECT id ledcount directionX directionY directionZ tags from configuration;"); + let stmt = prepare_statement(&conn, "SELECT id, ledcount, directionX, directionY, directionZ, tags from configuration;"); if let Err(e) = stmt { return e; }