Skip to content

Commit be17912

Browse files
Fix RequestUrl job on default connection
1 parent a572892 commit be17912

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Jobs/RequestUrl.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ class RequestUrl implements ShouldQueue
5757
*/
5858
public function __construct(string $url, bool $processImages = false, string $requestType = 'get', array $postData = [])
5959
{
60-
$this->onConnection(config('statamic-cache-requester.queue.connection'));
60+
if(config('statamic-cache-requester.queue.connection') != 'default') {
61+
$this->onConnection(config('statamic-cache-requester.queue.connection'));
62+
}
63+
6164
$this->onQueue(config('statamic-cache-requester.queue.name'));
6265

6366
$this->url = $this->applyUrlManipulations($url);

0 commit comments

Comments
 (0)