bug fixed
This commit is contained in:
parent
0ec47aba30
commit
0b16750e01
|
@ -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(())
|
||||
|
|
Loading…
Reference in New Issue
Block a user