Skip to content

Commit

Permalink
Update AppUninstalledJob.php
Browse files Browse the repository at this point in the history
null guard against an invalid shop on uninstall
  • Loading branch information
andreybutov authored Oct 27, 2023
1 parent 6284982 commit 6b05663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Messaging/Jobs/AppUninstalledJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public function handle(

// Get the shop
$shop = $shopQuery->getByDomain($this->domain);
if ( !$shop ) {
return true;
}
$shopId = $shop->getId();

// Cancel the current plan
Expand Down

0 comments on commit 6b05663

Please sign in to comment.