fix(db): don't update item_order when updating an item

This commit is contained in:
ryan 2025-03-12 02:22:00 +03:00
parent 11e4935055
commit 32e79ea609

View file

@ -501,8 +501,7 @@ mod db_impl {
VALUES (?, ?, ?, ?) VALUES (?, ?, ?, ?)
ON CONFLICT(id) DO UPDATE SET ON CONFLICT(id) DO UPDATE SET
url_id = excluded.url_id, url_id = excluded.url_id,
wikidata_id = excluded.wikidata_id, wikidata_id = excluded.wikidata_id",
item_order = excluded.item_order",
rusqlite::params![ rusqlite::params![
&item.id, &item.id,
url_id, url_id,