diff --git a/wrenchboard/src/shared_tool/jobs_manager.cc b/wrenchboard/src/shared_tool/jobs_manager.cc index 1d433590..6ec6dd9a 100644 --- a/wrenchboard/src/shared_tool/jobs_manager.cc +++ b/wrenchboard/src/shared_tool/jobs_manager.cc @@ -77,7 +77,7 @@ long WrenchJobManagerOffers( CVars in, CVars &out){ out["total_record"] = pgsql_num_rows(res); res = pgsql_query(" SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,jo.offer_code AS offer_code, j.uid AS job_uid," - " (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, " + " (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, j.job_type AS job_type, " " c.code AS currency_code, c.description AS currency_description,j.country,mf.uid AS family_uid, j.banner AS banner " " FROM members_jobs_offer jo " " LEFT JOIN members_jobs j ON j.id = jo.job_id " @@ -152,6 +152,8 @@ long WrenchJobManagerOffers( CVars in, CVars &out){ snprintf(vname, sizeof (vname), "currency_code_%05d", i); out[vname] = rec["currency_code"]; + snprintf(vname, sizeof (vname), "job_type_%05d", i); + out[vname] = rec["job_type"]; } } diff --git a/www-api/app/Models/ResultFormatter.php b/www-api/app/Models/ResultFormatter.php index 76e026d5..66b754b5 100644 --- a/www-api/app/Models/ResultFormatter.php +++ b/www-api/app/Models/ResultFormatter.php @@ -715,6 +715,7 @@ class ResultFormatter extends Model 'offer_added' => $out["offer_added_${key}"], 'job_country' => $out["job_country_${key}"], 'currency' => $out["currency_${key}"], + 'job_type' => $out["job_type_${key}"], 'currency_code' => $out["currency_code_${key}"], "banner" => $this->fixEmptyBanner( $out["banner_${key}"]), 'interest_count' => $out["${$int_c}"] ?? 0,