diff --git a/crates/db_schema/src/impls/post.rs b/crates/db_schema/src/impls/post.rs index 50b8dac42..596269c36 100644 --- a/crates/db_schema/src/impls/post.rs +++ b/crates/db_schema/src/impls/post.rs @@ -55,13 +55,14 @@ impl Crud for Post { } /// Ignores unpublished scheduled posts - async fn read( - pool: &mut DbPool<'_> - , id: Self::IdType - ) -> Result, Error> { + async fn read(pool: &mut DbPool<'_>, id: Self::IdType) -> Result, Error> { let conn = &mut *get_conn(pool).await?; - post::table.find(id) - .filter(post::scheduled_time.is_null()).first(conn).await.optional() + post::table + .find(id) + .filter(post::scheduled_time.is_null()) + .first(conn) + .await + .optional() } async fn update(