Merge branch 'master' of https://git.cscherr.de/PlexSheep/rs-basic
cargo devel CI / cargo CI (push) Successful in 3m20s Details

This commit is contained in:
Christoph J. Scherr 2024-06-27 13:40:17 +02:00
commit a4814d43e0
1 changed files with 1 additions and 1 deletions

View File

@ -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())