Skip to content

Commit

Permalink
Coin: Add ability to see how much voices you reveiced trough notifica…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
veselcraft committed Jun 2, 2022
1 parent 32e976a commit 26b8b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CLI/FetchToncoinTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$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,
Expand Down

0 comments on commit 26b8b23

Please sign in to comment.