automatic cargo CI changes

This commit is contained in:
cscherrNT 2024-06-27 11:17:48 +00:00 committed by github-actions[bot]
parent 2edb979aef
commit d6a8514d39
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,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())