interst fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user