This commit is contained in:
CHIEFSOFT\ameye
2024-10-27 15:07:02 -04:00
parent d721e5c51a
commit 12bbe14725
3 changed files with 30 additions and 0 deletions
+18
View File
@@ -36,6 +36,24 @@ var wallets = {
}
});
},
siteSettings: function (req, res, next) {
logger.info("siteSettings: function (req, res, next)");
let Qstring = "";
Qstring = "SELECT * FROM settings";
logger.info(Qstring);
db.query(Qstring, function (err, result) {
try {
if (err) throw err;
let resultItem = {
"result": result.rows,
"total_record": result.rowCount
}
next(null, resultItem); // pass control to the next handler
} catch (e) {
next(e.message, null); // pass control to the next handler
}
});
},
getuserkidswallet: function (req, res, next) {
logger.info("getuserkidswallet: function (req, res, next)");
//console.log("REQ---->",req.body.uid);