fix query

This commit is contained in:
CHIEFSOFT\ameye
2023-05-25 06:52:01 -04:00
parent 29fed4a3a2
commit f94ffb76f8
+1 -1
View File
@@ -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";