From e4706f9c900b7d4188d04570d28939ea778fac6a Mon Sep 17 00:00:00 2001 From: Celestora Date: Thu, 7 Oct 2021 14:27:58 +0300 Subject: [PATCH] Fix coins not being spent during gift sending Signed-off-by: Celestora --- Web/Presenters/GiftsPresenter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Web/Presenters/GiftsPresenter.php b/Web/Presenters/GiftsPresenter.php index 97980794..9b07702e 100644 --- a/Web/Presenters/GiftsPresenter.php +++ b/Web/Presenters/GiftsPresenter.php @@ -86,6 +86,7 @@ final class GiftsPresenter extends OpenVKPresenter $notification = new GiftNotification($user, $this->user->identity, $gift, $comment); $notification->emit(); $this->user->identity->setCoins($coinsLeft); + $this->user->identity->save(); $user->gift($this->user->identity, $gift, $comment, !is_null($this->postParam("anonymous"))); $gift->used();