Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix restarting a stream after backend restart
Browse files Browse the repository at this point in the history
  • Loading branch information
feymartynov committed Sep 18, 2020
1 parent c52584f commit d1fe7a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/db/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ impl<'a> InsertQuery<'a> {
use crate::schema::recording::dsl::recording;
use diesel::RunQueryDsl;

diesel::insert_into(recording).values(self).get_result(conn)
diesel::insert_into(recording)
.values(self)
.on_conflict_do_nothing()
.get_result(conn)
}
}

Expand Down

0 comments on commit d1fe7a4

Please sign in to comment.