fix delete question

This commit is contained in:
David Westgate 2024-06-02 18:19:39 -07:00
parent a5b576838c
commit 20dae82345

View File

@ -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
{