diff --git a/src/pg_store.rs b/src/pg_store.rs index 5353bfa..8991daf 100644 --- a/src/pg_store.rs +++ b/src/pg_store.rs @@ -281,14 +281,14 @@ impl Store { let delete_question_query = "DELETE FROM questions WHERE id = $1"; // First, delete any possible question/tag associations match sqlx::query(delete_question_tag_query) - .bind(id.to_string()) + .bind(i32::from(id)) .execute(&self.connection) .await { Ok(_) => { //Now, delete the question match sqlx::query(delete_question_query) - .bind(id.to_string()) + .bind(i32::from(id)) .execute(&self.connection) .await {