fix query
This commit is contained in:
@@ -193,7 +193,7 @@ long WrenchJobPostAgree(CVars in, CVars &out) {
|
||||
if (load_db_record(out, "SELECT id AS member_id, * FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NULL", in["member_id"].Long(), in["uid"].c_str()) ){
|
||||
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'", member_id, 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["advise"] = "Refresh Session Profile";
|
||||
|
||||
Reference in New Issue
Block a user