Job status

This commit is contained in:
CHIEFSOFT\ameye
2023-06-28 10:59:08 -04:00
parent 63f246479d
commit 4b525e6602
+5 -2
View File
@@ -288,7 +288,8 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
" LEFT JOIN currency c ON c.country=j.country "
" WHERE m.status = 1 AND m.client_id=0 "
" AND m.expire IS NOT NULL AND m.expire> now() "
" AND mo.member_id = %lu ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
" AND mo.member_id = %lu AND j.status = 1 "
" ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
@@ -394,7 +395,9 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
" LEFT JOIN members mm ON mm.id = mo.member_id "
" WHERE m.status = 1 AND m.client_id=0 "
" AND m.expire IS NOT NULL AND m.expire> now() "
" AND m.member_id = %lu ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
" AND m.member_id = %lu AND j.status = 1 "
" ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);