diff options
Diffstat (limited to 'rust/src/api_server.rs')
-rw-r--r-- | rust/src/api_server.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index d172cb16..00d5cdde 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -807,9 +807,9 @@ impl Server { if !new_abstracts.is_empty() { // Sort of an "upsert"; only inserts new abstract rows if they don't already exist insert_into(abstracts::table) - .values(new_abstracts) - //.on_conflict(abstracts::sha1) - //.do_nothing() + .values(&new_abstracts) + .on_conflict(abstracts::sha1) + .do_nothing() .execute(conn)?; } let release_abstract_rows: Vec<ReleaseRevAbstractNewRow> = abstract_list |