This commit is contained in:
CHIEFSOFT\ameye
2023-05-09 18:05:34 -04:00
parent d1c9f7d83f
commit e0cd3ad9a9
+1 -1
View File
@@ -106,7 +106,7 @@ long WrenchJobPostAgree(CVars in, CVars &out) {
long member_id = REQ_LONG(in, "member_id", 1, -1);
REQ_STRING(in, "uid", 1, 500, "(.*)"); //uid
if (load_db_record(out, "SELECT * FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NULL", in["message_id"].Long(), in["uid"].c_str()) {
if (load_db_record(out, "SELECT * FROM members WHERE id = %lu AND uid='%s' AND post_jobs IS NULL", 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());
}