fix(rewards): Tightend up Minecraft awards

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 22ddaeae
......@@ -125,7 +125,7 @@ if ( array_key_exists( "user", $_GET ) && array_key_exists( "data", $_GET ) ) {
$RewardsMinecraft = new RewardsMinecraft();
$json = $RewardsMinecraft->queryRewards();
$json = $RewardsMinecraft->queryMinecraftRewards();
$end = microtime( true );
......
......@@ -308,7 +308,7 @@ class RewardsMinecraft {
* @todo Consider test case
* @return array
*/
public function queryRewards() {
public function queryMinecraftRewards() {
$wmc_key_provided = $_GET[ 'wmc_key' ];
$wmc_key_correct = $this->getAppClass()->getSetting( "wmc_key", null, true );
nxr( 0, "Minecraft rewards Check" );
......@@ -328,7 +328,7 @@ class RewardsMinecraft {
. " `" . $databaseTable . "reward_queue`.`rqid` AS `rqid`"
. " FROM `" . $databaseTable . "rewards`"
. " JOIN `" . $databaseTable . "reward_queue` ON (`" . $databaseTable . "reward_queue`.`reward` = `" . $databaseTable . "rewards`.`rid`)"
. " WHERE `" . $databaseTable . "reward_queue`.`state` = 'pending' LIMIT 50" );
. " WHERE `" . $databaseTable . "reward_queue`.`state` = 'pending' AND `" . $databaseTable . "rewards`.`system` = 'minecraft' LIMIT 50" );
$data = [];
foreach ( $rewards as $dbReward ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment