bug fixed

This commit is contained in:
병준 박 2022-08-30 15:41:49 +00:00
parent 0ec47aba30
commit 0b16750e01

View File

@ -46,8 +46,12 @@ impl Repository {
conn: &diesel::PgConnection,
new_betting_history: &Vec<models::NewBettingHistory>,
) -> Result<(), Error> {
use api_kgon_betting_history::dsl;
diesel::insert_into(api_kgon_betting_history::table)
.values(new_betting_history)
.on_conflict(dsl::id)
.do_nothing()
.execute(conn)?;
Ok(())