fix: Do not pull templates in dev
This commit is contained in:
parent
54e1e7684d
commit
206df82d63
@ -39,6 +39,7 @@ class PullTemplatesAndVersions implements ShouldQueue, ShouldBeEncrypted
|
||||
ray($e->getMessage());
|
||||
}
|
||||
try {
|
||||
if (!isDev()) {
|
||||
ray('PullTemplatesAndVersions service-templates');
|
||||
$response = Http::retry(3, 1000)->get(config('constants.services.official'));
|
||||
if ($response->successful()) {
|
||||
@ -47,6 +48,7 @@ class PullTemplatesAndVersions implements ShouldQueue, ShouldBeEncrypted
|
||||
} else {
|
||||
send_internal_notification('PullTemplatesAndVersions failed with: ' . $response->status() . ' ' . $response->body());
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
send_internal_notification('PullTemplatesAndVersions failed with: ' . $e->getMessage());
|
||||
ray($e->getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user