From fbf3f180c24157791b3aed274db53fc6d0eca079 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 21 Jun 2023 07:30:03 -0400 Subject: [PATCH] interst fix --- wrenchboard/src/shared_tool/jobs.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 31548af5..835f89a7 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -543,8 +543,9 @@ long WrenchJobsProcessInterest(CVars in, CVars &out) { out = in; out["status"] = "Recieved"; REQ_LONG(in, "member_id", 1, -1); - REQ_STRING(in, "client_uid", 1, 55, "(.*)"); //client_uid - REQ_STRING(in, "offer_uid", 1, 55, "(.*)"); //client_uid + REQ_STRING(in, "client_uid", 1, 55, "(.*)"); + REQ_STRING(in, "offer_uid", 1, 55, "(.*)"); + long interest = REQ_LONG(in, "interest", 1, -1); const PGresult *res0 = pgsql_query("SELECT mo.id AS interest_id, mo.*,mm.uid,jo.uid " " FROM members_offer_interest mo " @@ -559,13 +560,13 @@ long WrenchJobsProcessInterest(CVars in, CVars &out) { in = rec1; } }else { - out["status"] = "Not found."; + out["status"] = "Not found."; return ret; } long interest_id = REQ_LONG(in, "interest_id", 1, -1); - long interest = REQ_LONG(in, "interest", 1, -1); + //REQ_STRING (in, "offer_code", 1, 15, "(.*)"); //offer_code if (interest == JOB_INTEREST_ACCEPT || interest == JOB_INTEREST_REJECT || interest == JOB_INTEREST_CANCEL) { // is job still valid