From 2e4ab79839e9d0de47ead51540e93f83419fad05 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 3 Feb 2024 10:26:09 -0500 Subject: [PATCH] fix query --- wrenchboard/src/shared_tool/jobs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 19dabe24..c5209451 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -1383,8 +1383,8 @@ long WrenchSendJobsOfferIndividual(CVars in, CVars &out) { CVars z; try { - // let us use this email to see if this alredy a user on the system - if (load_db_record(out, " SELECT id AS client_id FROM members WHERE LOWER('username') =LOWER('%s')", in["email"].c_str())) { + // let us use this email to see if this already a user on the system + if (load_db_record(out, " SELECT username,id AS client_id FROM members WHERE LOWER(username) =LOWER(TRIM('%s'));", in["email"].c_str())) { in["client_id"] = out["client_id"]; // overiddind if account is found if (out["client_id"].length() > 0) { x["client_id"] = in["client_id"];