automatic cargo CI changes
This commit is contained in:
parent
2edb979aef
commit
d6a8514d39
|
@ -33,7 +33,7 @@ impl Post {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
pub fn delete(conn: &mut SqliteConnection, id: i32) -> anyhow::Result<()> {
|
pub fn delete(conn: &mut SqliteConnection, id: i32) -> anyhow::Result<()> {
|
||||||
use crate::schema::posts::dsl::{posts, published};
|
use crate::schema::posts::dsl::posts;
|
||||||
|
|
||||||
let post = diesel::delete(posts.find(id))
|
let post = diesel::delete(posts.find(id))
|
||||||
.returning(Post::as_returning())
|
.returning(Post::as_returning())
|
||||||
|
|
Loading…
Reference in New Issue