Merge branch 'master' of https://git.cscherr.de/PlexSheep/rs-basic
cargo devel CI / cargo CI (push) Successful in 3m20s
Details
cargo devel CI / cargo CI (push) Successful in 3m20s
Details
This commit is contained in:
commit
a4814d43e0
|
@ -40,7 +40,7 @@ impl Post {
|
|||
Ok(())
|
||||
}
|
||||
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))
|
||||
.returning(Post::as_returning())
|
||||
|
|
Loading…
Reference in New Issue