mo status

This commit is contained in:
CHIEFSOFT\ameye
2023-11-18 18:18:47 -05:00
parent 1aa3dc8e97
commit e2c115233c
+2 -2
View File
@@ -383,7 +383,7 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
" LEFT JOIN members_jobs j ON j.id=m.job_id "
" LEFT JOIN members mm ON mm.id = mo.member_id "
" LEFT JOIN currency c ON c.country=j.country "
" WHERE m.status = 1 AND m.client_id=0 "
" WHERE m.status = 1 AND m.client_id=0 AND mo.status = 1 "
" AND m.expire IS NOT NULL AND m.expire> now() "
" AND mo.member_id = %lu AND j.status = 1 "
" ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
@@ -495,7 +495,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
" LEFT JOIN members_jobs j ON j.id=m.job_id "
" LEFT JOIN members mm ON mm.id = mo.member_id "
" LEFT JOIN currency c ON c.country=j.country "
" WHERE m.status = 1 AND m.client_id=0 "
" WHERE m.status = 1 AND m.client_id=0 AND mo.status = 1 "
" AND m.expire IS NOT NULL AND m.expire> now() "
" AND m.member_id = %lu AND j.status = 1 "
" ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);