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