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());
|
ray($e->getMessage());
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
if (!isDev()) {
|
||||||
ray('PullTemplatesAndVersions service-templates');
|
ray('PullTemplatesAndVersions service-templates');
|
||||||
$response = Http::retry(3, 1000)->get(config('constants.services.official'));
|
$response = Http::retry(3, 1000)->get(config('constants.services.official'));
|
||||||
if ($response->successful()) {
|
if ($response->successful()) {
|
||||||
@ -47,6 +48,7 @@ class PullTemplatesAndVersions implements ShouldQueue, ShouldBeEncrypted
|
|||||||
} else {
|
} else {
|
||||||
send_internal_notification('PullTemplatesAndVersions failed with: ' . $response->status() . ' ' . $response->body());
|
send_internal_notification('PullTemplatesAndVersions failed with: ' . $response->status() . ' ' . $response->body());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
send_internal_notification('PullTemplatesAndVersions failed with: ' . $e->getMessage());
|
send_internal_notification('PullTemplatesAndVersions failed with: ' . $e->getMessage());
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user