todo stuff
This commit is contained in:
1 parent
6b5d6ae288
commit
ebabe0e85a
7 files changed
+287
-39
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user