This commit is contained in:
CHIEFSOFT\ameye
2024-08-03 19:14:46 -04:00
parent be241721ff
commit 8344d49177
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -20,7 +20,8 @@ var family = {
db.query(Qstring, function (err, result) {
try {
if (err) throw err;
console.log("FAMILY row id",result.rows);
console.log("FAMILY row id",result.rows.member_id);
console.log("FAMILY row id[]",result.rows[0].member_id);
let QstringFamily = " SELECT * FROM members_family WHERE member_id =1";
db.query(QstringFamily, function (err, result) {
@@ -30,7 +31,7 @@ var family = {
let resultItem ={
"result": result.rows,
"total_record": result.rowCount
"total_record": result.count()
}
// logger.info(result);
next(null, resultItem); // pass control to the next handler