feat: start on CRUD ops for new types

This commit is contained in:
nullishamy 2025-04-28 23:21:59 +01:00
parent d252131e0d
commit e6b654a0b3
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
6 changed files with 149 additions and 32 deletions

View file

@ -51,7 +51,8 @@ pub async fn home(
display_name: String,
username: String
}
// FIXME: query! can't cope with this. returns a type error
let posts = sqlx::query_as::<_, Post>(
r#"
WITH RECURSIVE get_home_timeline_with_boosts(
@ -84,8 +85,6 @@ pub async fn home(
.await
.unwrap();
dbg!(&posts);
let mut out = Vec::<TimelineStatus>::new();
for record in posts.iter() {
let mut boost: Option<Box<TimelineStatus>> = None;