From 64cab925e1ac3df27567b381b488414ef23fdefa Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 24 Jan 2024 07:04:51 -0500 Subject: [PATCH] Added status 0 --- wrenchboard/src/shared_tool/family_acc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/family_acc.cc b/wrenchboard/src/shared_tool/family_acc.cc index 2da68ae5..4f2186a3 100644 --- a/wrenchboard/src/shared_tool/family_acc.cc +++ b/wrenchboard/src/shared_tool/family_acc.cc @@ -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) {