From b67894fc6e7d883aa24a004a4f19fcb47dc40f5e Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Tue, 25 Feb 2025 17:34:33 +0000 Subject: [PATCH] fixL had bad query --- src/commands/link_email.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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| {