Added badge selection

This commit is contained in:
2019-06-08 10:20:10 +10:00
parent d8a7dd4933
commit 2a27572562
21 changed files with 396 additions and 15 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ const getEquipmentStatistics = (cb) => {
return cb(undefined, { 'statistics': require('./equipment_statistics.json') });
};
const getOwned = (connection, id, cb) => {
const getEquipmentOwned = (connection, id, cb) => {
let query = 'SELECT name, quantity FROM equipment WHERE accountId = ?;';
connection.query(query, [id], (err, results) => {
if (err) throw err;
@@ -95,7 +95,7 @@ const logActivity = (connection, id) => {
module.exports = {
getEquipmentStatistics: getEquipmentStatistics,
getOwned: getOwned,
getEquipmentOwned: getEquipmentOwned,
isAttacking: isAttacking,
isSpying: isSpying,
logActivity: logActivity