Added status 0

This commit is contained in:
CHIEFSOFT\ameye
2024-01-24 07:04:51 -05:00
parent 987bb5112a
commit 64cab925e1
+2 -2
View File
@@ -129,7 +129,7 @@ long WrenchFamilyInviteList(CVars in, CVars &out){
res = pgsql_query("SELECT * "
" FROM members_family_relative "
" WHERE member_id = %lu "
" AND status IN ( 1,2,3,4,5) "
" AND status IN (0, 1,2,3,4,5) "
" ORDER BY id DESC ", member_id );
if (res != NULL && pgsql_num_rows(res) > 0) {
@@ -253,7 +253,7 @@ long WrenchSuggestWaitingList(CVars in, CVars &out){ // this is the parent now
" LEFT JOIN members_family mf ON mf.uid::text = sg.family_uid "
" WHERE sg.family_uid::text IN (SELECT uid::text FROM members_family "
" WHERE member_id = %lu ) "
" AND sg.status IN ( 0,1,2,3,4,5) "
" AND sg.status IN ( 1,2,3,4,5) "
" ORDER BY sg.created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {