From 26b8b23aae67de1936dd515458f8dc31796f2fd3 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Thu, 2 Jun 2022 14:07:31 +0300 Subject: [PATCH] Coin: Add ability to see how much voices you reveiced trough notifications --- CLI/FetchToncoinTransactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLI/FetchToncoinTransactions.php b/CLI/FetchToncoinTransactions.php index f6a2fb56..b4e66dcb 100755 --- a/CLI/FetchToncoinTransactions.php +++ b/CLI/FetchToncoinTransactions.php @@ -85,7 +85,7 @@ class FetchToncoinTransactions extends Command $value = ($transfer["in_msg"]["value"] / NANOTON) / OPENVK_ROOT_CONF["openvk"]["preferences"]["ton"]["rate"]; $user->setCoins($user->getCoins() + $value); $user->save(); - (new CoinsTransferNotification($user, (new Users)->get(OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"]), 0, "Via TON cryptocurrency"))->emit(); + (new CoinsTransferNotification($user, (new Users)->get(OPENVK_ROOT_CONF["openvk"]["preferences"]["support"]["adminAccount"]), (int) $value, "Via TON cryptocurrency"))->emit(); $header->writeln($value . " coins are added to " . $user->getId() . " user id"); $this->transactions->insert([ "id" => NULL,