Job status
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user