Remove from<i64> from db_ids
This commit is contained in:
parent
f2e00afbb9
commit
c3d9dff83f
5 changed files with 10 additions and 18 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue