family fix

This commit is contained in:
CHIEFSOFT\ameye
2023-11-07 12:55:56 -05:00
parent bf3de251c7
commit 92475ffabe
+1 -2
View File
@@ -2006,8 +2006,7 @@ long WrenchBoardFamilyAccMemberID(CVars in, CVars &out){
logfmt(logINFO, "********~~~~~~~~ ------WrenchBoardFamilyAccMemberID()");
try {
REQ_STRING(in, "username", 5, 49, "(.*)");
REQ_STRING(in, "pin", 4, 10, "(.*)");
REQ_STRING(in, "family_uid", 5, 150, "(.*)");
const PGresult *res = pgsql_query(" SELECT member_id AS parent_member_id, id AS family_id,* FROM members_family "
" WHERE uid='%s'", in["family_uid"].c_str());
if (res != NULL && pgsql_num_rows(res) > 0) {