Fix for the number of miners being displayed on the site.

This commit is contained in:
Alexander Blair
2017-02-12 19:30:06 -08:00
parent 8edd96535c
commit 9fd55bb9a8
+2 -2
View File
@@ -292,11 +292,11 @@ function updatePoolStats(poolType) {
function (callback) {
debug(threadName + "Checking MySQL for total miners paid");
if (typeof(poolType) !== 'undefined') {
global.mysql.query("SELECT id FROM payments WHERE pool_type = ? group by payment_address, payment_id, id", [poolType]).then(function (rows) {
global.mysql.query("SELECT payment_address, payment_id FROM payments WHERE pool_type = ? group by payment_address, payment_id", [poolType]).then(function (rows) {
return callback(null, rows.length);
});
} else {
global.mysql.query("SELECT id FROM payments group by payment_address, payment_id, id").then(function (rows) {
global.mysql.query("SELECT payment_address, payment_id FROM payments group by payment_address, payment_id").then(function (rows) {
return callback(null, rows.length);
});
}