Remove from<i64> from db_ids

This commit is contained in:
Julia Lange 2026-02-04 13:59:54 -08:00
parent f2e00afbb9
commit c3d9dff83f
Signed by: Julia
SSH key fingerprint: SHA256:5DJcfxa5/fKCYn57dcabJa2vN2e6eT0pBerYi5SUbto
5 changed files with 10 additions and 18 deletions

View file

@ -60,15 +60,14 @@ impl FeedChannel {
async fn add_item_at(
&self, pool: &AdapterPool, item: &Item, add_at: DateTime<Utc>
) -> Result<()> {
let int_item_id = i64::from(item.id());
let int_feed_id = i64::from(self.feed_id);
let int_item_id = item.id().0;
let int_initial_score = i64::from(self.initial_score);
let string_last_updated = add_at.to_rfc2822();
sqlx::query!(
"INSERT OR IGNORE INTO feed_items (feed_id, item_id, score, last_updated)
VALUES (?, ?, ?, ?)",
int_feed_id, int_item_id, int_initial_score, string_last_updated
self.feed_id.0, int_item_id, int_initial_score, string_last_updated
).execute(&pool.0).await?;
Ok(())
}