clean up 'update_items'

This commit is contained in:
Julia Lange 2026-01-22 15:55:31 -08:00
parent 3748606e21
commit 0bb9a81d60
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
4 changed files with 104 additions and 34 deletions

View file

@ -90,8 +90,8 @@ impl Feed {
) -> Result<Vec<Item>> {
let items: Result<Vec<Item>> = sqlx::query_as!(
UnparsedItem,
"SELECT i.id as `id!`, i.channel_id, i.guid, i.fetched_at, i.title,
i.description, i.content
"SELECT i.id as `id!`, i.channel_id, i.fetched_at, i.title, i.description,
i.content
FROM items i
JOIN feed_items fi on i.id = fi.item_id
WHERE feed_id = ? AND archived = FALSE