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

@ -58,7 +58,6 @@ impl Item {
pub async fn get_or_create(
pool: &AdapterPool, from_channel: ChannelId, guid: &str
) -> Result<Self> {
let int_channel_id = i64::from(from_channel);
let item = sqlx::query_as!(
UnparsedItem,
@ -67,7 +66,7 @@ impl Item {
ON CONFLICT(channel_id, guid) DO UPDATE SET channel_id = channel_id
RETURNING id as `id!`, channel_id, fetched_at, title, description,
content",
int_channel_id, guid
from_channel.0, guid
).fetch_one(&pool.0).await?.parse();
item