mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
inner join user table when inserting highlight to make sure user exists
This commit is contained in:
parent
cbf58614c4
commit
42e01613d4
1 changed files with 2 additions and 1 deletions
|
|
@ -168,7 +168,8 @@ async def insert_highlights(db_conn, highlights, original_ids):
|
|||
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10,
|
||||
$11, $12, $13, $14, $15, $16, $17
|
||||
FROM
|
||||
omnivore.library_item
|
||||
omnivore.library_item l
|
||||
INNER JOIN omnivore.user u ON u.id = $2
|
||||
WHERE
|
||||
id = $12
|
||||
ON CONFLICT (id) DO UPDATE SET
|
||||
|
|
|
|||
Loading…
Reference in a new issue