fix post job
This commit is contained in:
@@ -194,18 +194,20 @@ long WrenchJobPostAgree(CVars in, CVars &out) {
|
|||||||
if ( out["member_id"].Long() > 0 )
|
if ( out["member_id"].Long() > 0 )
|
||||||
{
|
{
|
||||||
pgsql_exec("UPDATE members SET post_jobs = now() WHERE id = %lu AND uid='%s'", in["message_id"].Long(), in["uid"].c_str());
|
pgsql_exec("UPDATE members SET post_jobs = now() WHERE id = %lu AND uid='%s'", in["message_id"].Long(), in["uid"].c_str());
|
||||||
load_db_record(out, "SELECT post_jobs FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NOT NULL", in["member_id"].Long(), in["uid"].c_str());
|
load_db_record(out, "SELECT * FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NOT NULL", in["member_id"].Long(), in["uid"].c_str());
|
||||||
out["status"] = "Completed";
|
out["status"] = "Completed";
|
||||||
out["advise"] = "Refresh Session Profile";
|
out["advise"] = "Refresh Session Profile";
|
||||||
ret = PHP_CREATED_OK;
|
ret = PHP_CREATED_OK;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
out["status"] = "Invalid";
|
load_db_record(out, "SELECT * FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NOT NULL", in["member_id"].Long(), in["uid"].c_str());
|
||||||
|
out["advise"] = "Probably Already Set";
|
||||||
|
out["status"] = "Invalid Update";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (bad_parameter) {
|
} catch (bad_parameter) {
|
||||||
out["log_status"] = "Error WrenchMarketInterestQuestion";
|
out["log_status"] = "Error WrenchJobPostAgree";
|
||||||
}
|
}
|
||||||
logfmt(logINFO, "/WrenchJobPostAgree()");
|
logfmt(logINFO, "/WrenchJobPostAgree()");
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user