diff --git a/src/commands/link_email.rs b/src/commands/link_email.rs index 35a29cc..8201923 100644 --- a/src/commands/link_email.rs +++ b/src/commands/link_email.rs @@ -411,10 +411,11 @@ pub mod verify { sqlx::query_as::<_, Committees>( r#" SELECT * - committee like '%?1%' + FROM committees + WHERE committee LIKE ?1 "#, ) - .bind(wolves_id) + .bind(format!("%{}%", wolves_id)) .fetch_all(db) .await .unwrap_or_else(|e| {