Skip to content

Commit d9eb61b

Browse files
committed
Prevent seralizing the webhookmanager in the webhookinstaller job
1 parent 1e7c981 commit d9eb61b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/ShopifyApp/Jobs/WebhookInstaller.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ class WebhookInstaller implements ShouldQueue
2323
*/
2424
protected $shop;
2525

26-
/**
27-
* Webhook manager.
28-
*
29-
* @var \OhMyBrew\ShopifyApp\Services\WebhookManager
30-
*/
31-
protected $manager;
32-
3326
/**
3427
* Create a new job instance.
3528
*
@@ -40,7 +33,6 @@ class WebhookInstaller implements ShouldQueue
4033
public function __construct($shop)
4134
{
4235
$this->shop = $shop;
43-
$this->manager = new WebhookManager($this->shop);
4436
}
4537

4638
/**
@@ -50,6 +42,6 @@ public function __construct($shop)
5042
*/
5143
public function handle()
5244
{
53-
return $this->manager->createWebhooks();
45+
return (new WebhookManager($this->shop))->createWebhooks();
5446
}
5547
}

0 commit comments

Comments
 (0)