fix q
This commit is contained in:
@@ -289,7 +289,7 @@ long WrenchJobManagerActiveTasksList(CVars in, CVars &out) {
|
||||
" WHEN mc.status = 1 AND mc.delivery_date <now() THEN 'Past Due' "
|
||||
" ELSE 'Others' END) AS status_description,mc.delivery_date "
|
||||
" FROM members_jobs_contract mc LEFT JOIN members_jobs mj ON mj.id = mc.job_id LEFT JOIN members m ON m.id=mc.client_id "
|
||||
" WHERE mc.client_id =%lu AND mc.status IN (1,2,4) "
|
||||
" WHERE mc.member_id =%lu AND mc.status IN (1,2,4) "
|
||||
" ORDER BY mc.id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
|
||||
//ORDER BY id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user