fix: handle the just in case the user alrady exists as a different person
This commit is contained in:
parent
015f23b922
commit
d673dce6fa
1 changed files with 2 additions and 1 deletions
|
@ -305,7 +305,8 @@ pub mod link {
|
|||
sqlx::query_as::<_, Wolves>(
|
||||
"
|
||||
INSERT INTO wolves (id_wolves, email)
|
||||
VALUES (?1, ?2)
|
||||
VALUES ($1, $2)
|
||||
ON CONFLICT(id_wolves) DO UPDATE SET email = $2
|
||||
",
|
||||
)
|
||||
.bind(id_wolves)
|
||||
|
|
Loading…
Reference in a new issue