From 099261247eb205787e929a37b8e7a54328957ee9 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 9 Jul 2023 21:08:53 +0100 Subject: [PATCH] chore: fix last commit --- src/configure.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }