todo stuff

This commit is contained in:
2021-10-02 22:54:34 +01:00
parent 6b5d6ae288
commit ebabe0e85a
7 changed files with 287 additions and 39 deletions

View File

@ -318,18 +318,4 @@ WHERE
)
}
}
pub async fn delete(&self, ctx: &Context) {
let pool = ctx.data.read().await.get::<SQLPool>().cloned().unwrap();
sqlx::query!(
"
DELETE FROM reminders WHERE id = ?
",
self.id
)
.execute(&pool)
.await
.unwrap();
}
}