Skip to content

Commit 978f5bb

Browse files
authored
Update AppUninstalledJob.php (#229)
null guard against an invalid shop on uninstall
1 parent 9d2e75e commit 978f5bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Messaging/Jobs/AppUninstalledJob.php

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function handle(
7272

7373
// Get the shop
7474
$shop = $shopQuery->getByDomain($this->domain);
75+
if ( !$shop ) {
76+
return true;
77+
}
7578
$shopId = $shop->getId();
7679

7780
// Cancel the current plan

0 commit comments

Comments
 (0)