This commit is contained in:
Adam 2024-07-16 03:49:37 -04:00
parent de02fed3cb
commit c77086f912

View file

@ -1,3 +1,6 @@
// use core::time;
// use std::time::Duration;
use leptos::*; use leptos::*;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -35,5 +38,6 @@ pub async fn get_articles(article_type: ArticleType) -> Result<Vec<Article>, Ser
let articles: Vec<Article> = sqlx::query_as::<_, Article>(query).fetch_all(&pool).await?; let articles: Vec<Article> = sqlx::query_as::<_, Article>(query).fetch_all(&pool).await?;
// std::thread::sleep(time::Duration::from_millis(2000));
Ok(articles) Ok(articles)
} }