Skip to content

Commit

Permalink
fix: update rss query
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed Oct 23, 2024
1 parent 487d515 commit 482c727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async fn main() {
use std::sync::Arc;
use tokio::sync::Mutex;

let query = format!("SELECT *, author.* from post ORDER BY created_at DESC;");
let query = format!("SELECT *, author.* from post ORDER BY created_at DESC WHERE is_published = true;");
let query = db.query(&query).await;
let mut posts = query?.take::<Vec<Post>>(0)?;
posts.iter_mut().for_each(|post| {
Expand Down

0 comments on commit 482c727

Please sign in to comment.