This commit is contained in:
CHIEFSOFT\ameye
2023-11-18 06:41:22 -05:00
parent 7aa8968a77
commit 1aa3dc8e97
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1904,7 +1904,7 @@ long VerifySession(CVars in, CVars &out) {
REQ_STRING(in, "sessionid", 4, 140, "(.*)");
long member_id = REQ_LONG(in, "member_id", 1, -1);
long session_expire_minutes = 15; // test build
long session_expire_minutes = 15; // test build
in["session_expire_minutes"] = CfgReadChar("system.session_expire_minutes");
session_expire_minutes = in["session_expire_minutes"].Long();
+4 -1
View File
@@ -486,7 +486,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
long limit = REQ_LONG(in, "limit", 1, -1);
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, "
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid, "
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid,j.uid AS job_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 ,"
" c.code AS currency_code, c.description AS currency_description,j.country "
@@ -519,6 +519,9 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "client_uid_%05d", i);
out[vname] = rec["client_uid"];
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
out[vname] = rec["job_uid"];
snprintf(vname, sizeof (vname), "client_name_%05d", i);
out[vname] = rec["client_name"];