interst fix

This commit is contained in:
CHIEFSOFT\ameye
2023-06-21 07:30:03 -04:00
parent 9d2d679fad
commit fbf3f180c2
+5 -4
View File
@@ -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