fix
This commit is contained in:
@@ -171,14 +171,14 @@ long WrenchMarketInterestQuestion(CVars in, CVars &out) {
|
||||
ret = PHP_CREATED_OK;
|
||||
|
||||
} catch (bad_parameter) {
|
||||
out["log_status"] = "Invalid Log Action";
|
||||
out["log_status"] = "Error WrenchMarketInterestQuestion";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
long WrenchJobsQuestion(CVars in, CVars &out) {
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
out = in;
|
||||
//out = in;
|
||||
try {
|
||||
out["status"] = "Recieved";
|
||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||
@@ -207,8 +207,14 @@ long WrenchJobsQuestion(CVars in, CVars &out) {
|
||||
x["memo"].set_valid(true);
|
||||
long msg_id = insert_db_record(DBS_VALID, "members_messages", "members_messages_id_seq", x);
|
||||
if (msg_id > 0) {
|
||||
|
||||
x["msg_id"] = msg_id;
|
||||
x["msg_id"].set_valid(true);
|
||||
//x["offer_id"] = out["offer_id"];
|
||||
//x["offer_id"].set_valid(true);
|
||||
job_email(WRENCHBOARD_JOB_SEND_QUESTION, x, out);
|
||||
}
|
||||
out = x;
|
||||
out["status"] = "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user