Skip to content

Commit 1fe70ac

Browse files
authored
Update rewardReport.php
1 parent 7e6a197 commit 1fe70ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

settings/rewardReport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
$lastTime = $botState['lastRewardMessage']??0;
1313
if(time() > $lastTime){
1414
$time = time() - ($rewaredTime * 60 * 60);
15-
$stmt = $connection->prepare("SELECT SUM(amount) as total FROM `orders_list` WHERE `date` > ?");
15+
16+
$stmt = $connection->prepare("SELECT SUM(price) as total FROM `pays` WHERE `request_date` > ?");
1617
$stmt->bind_param("i", $time);
1718
$stmt->execute();
1819
$totalRewards = number_format($stmt->get_result()->fetch_assoc()['total']);

0 commit comments

Comments
 (0)