diff --git a/src/commands/link_email.rs b/src/commands/link_email.rs index daa847c..ace4691 100644 --- a/src/commands/link_email.rs +++ b/src/commands/link_email.rs @@ -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)