Hid profile data via API

This commit is contained in:
2019-06-01 20:47:56 +10:00
parent 7ecf4fec93
commit 7c7e69d4c5
3 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const statistics = (connection, req, res, cb) => {
};
const owned = (connection, req, res, cb) => {
//verify the credentials
//validate the credentials
let query = 'SELECT COUNT(*) AS total FROM sessions WHERE accountId = ? AND token = ?;';
connection.query(query, [req.body.id, req.body.token], (err, results) => {
if (err) throw err;