Skip to content

Commit

Permalink
refactor(provider): update user alert repo class
Browse files Browse the repository at this point in the history
  • Loading branch information
021-projects committed Sep 16, 2024
1 parent de5f078 commit fa8d607
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/addons/BS/BtcPayProvider/Payment/BTCPayServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use XF\Payment\AbstractProvider;
use XF\Payment\CallbackState;
use XF\Purchasable\Purchase;
use XF\Repository\UserAlertRepository;
use BTCPayServer\Result\Invoice as InvoiceResult;

class BTCPayServer extends AbstractProvider
Expand Down Expand Up @@ -58,8 +57,8 @@ protected function sendAlertWithInvoice(
): void {
$visitor = \XF::visitor();

/** @var UserAlertRepository $alertRepo */
$alertRepo = \XF::repository(UserAlertRepository::class);
/** @var \XF\Repository\UserAlert $alertRepo */
$alertRepo = \XF::repository('XF:UserAlert');
$alertRepo->alert(
\XF::visitor(),
0,
Expand Down

0 comments on commit fa8d607

Please sign in to comment.