This commit is contained in:
CHIEFSOFT\ameye
2023-11-07 10:46:11 -05:00
parent 5b0c582844
commit d5ac9a2127
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -373,7 +373,7 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
long offset = REQ_LONG(in, "offset", 1, -1);
long limit = REQ_LONG(in, "limit", 1, -1);
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, "
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid,j.uid AS job_uid, "
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid, "
" mo.member_id, mm.added::date AS client_added, to_char(mo.added, 'Dy Mon dd, yyyy HH:MI AM') AS sent, "
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price,mo.uid AS interest_uid, "
@@ -449,6 +449,9 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "job_id_%05d", i);
out[vname] = rec["job_id"];
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
out[vname] = rec["job_uid"];
snprintf(vname, sizeof (vname), "expire_%05d", i);
out[vname] = rec["expire"];
+1
View File
@@ -276,6 +276,7 @@ class ResultFormatter extends Model
"title" => $out["title_${key}"],
"description" => $out["description_${key}"],
"job_id" => $out["job_id_${key}"],
"job_uid" => $out["job_uid_${key}"],
"expire" => $out["expire_${key}"],
"price" => $out["price_${key}"],
'job_country' => $out["job_country_${key}"],