This commit is contained in:
CHIEFSOFT\ameye
2023-07-04 11:56:49 -04:00
parent b097c7a2ba
commit cf21097eec
+1 -1
View File
@@ -90,7 +90,7 @@ long WrenchSuggestWaitingList(CVars in, CVars &out){ // this is the parent now
// res = pgsql_query("SELECT id FROM family_task_suggestion WHERE status=1 ");
// out["total_record"] = pgsql_num_rows(res);
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE family_uid IN (SELECT uid FROM members_family WHERE member_id = %lu) AND status IN ( 1,2,3,4,5) "
res = pgsql_query(" SELECT * FROM members_family_suggesttask WHERE family_uid::text IN (SELECT uid::text FROM members_family WHERE member_id = %lu) AND status IN ( 1,2,3,4,5) "
" ORDER BY created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {