bug fixed
This commit is contained in:
parent
0ec47aba30
commit
0b16750e01
|
@ -46,8 +46,12 @@ impl Repository {
|
||||||
conn: &diesel::PgConnection,
|
conn: &diesel::PgConnection,
|
||||||
new_betting_history: &Vec<models::NewBettingHistory>,
|
new_betting_history: &Vec<models::NewBettingHistory>,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
use api_kgon_betting_history::dsl;
|
||||||
|
|
||||||
diesel::insert_into(api_kgon_betting_history::table)
|
diesel::insert_into(api_kgon_betting_history::table)
|
||||||
.values(new_betting_history)
|
.values(new_betting_history)
|
||||||
|
.on_conflict(dsl::id)
|
||||||
|
.do_nothing()
|
||||||
.execute(conn)?;
|
.execute(conn)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user