settings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user