Fix unique constraint violation when joining
This commit is contained in:
parent
7880f3389c
commit
365b3fffd0
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ impl EuphRequest {
|
|||
fn join(conn: &mut Connection, room: String) -> rusqlite::Result<()> {
|
||||
conn.execute(
|
||||
"
|
||||
INSERT INTO euph_rooms (room)
|
||||
INSERT OR IGNORE INTO euph_rooms (room)
|
||||
VALUES (?)
|
||||
",
|
||||
[room],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue