fix: handle the just in case the user alrady exists as a different person

This commit is contained in:
silver 2024-11-09 12:53:53 +00:00
parent 015f23b922
commit d673dce6fa
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -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)