fix: broken contact query
Some checks failed
/ integration-test--firefox (push) Failing after 3m5s

This commit is contained in:
Robert Perce 2026-01-26 17:56:00 -06:00
parent d42adbe274
commit 69e23fd9bb
4 changed files with 15 additions and 12 deletions

View file

@ -85,6 +85,7 @@ fn birthdays_section(
})
}
#[tracing::instrument(level = "info")]
pub async fn journal_section(
pool: &SqlitePool,
entries: &Vec<JournalEntry>,
@ -110,7 +111,7 @@ pub async fn journal_section(
.entries {
@for entry in entries {
(Into::<MentionHost>::into(entry).format_pool(pool).await?)
(entry.to_html(pool).await?)
}
}
}
@ -129,7 +130,7 @@ pub mod get {
let pool = &state.db(&user).pool;
let contacts: Vec<HydratedContact> = sqlx::query_as(
"select id, birthday, manually_freshened_at, (
"select *, (
select string_agg(name,'\x1c' order by sort)
from names where contact_id = c.id
) as names, (