This commit is contained in:
Andras Bacsai 2023-09-14 17:22:21 +02:00
parent c287276d0e
commit 4d49132821

View File

@ -19,7 +19,7 @@
use Illuminate\Queue\SerializesModels; use Illuminate\Queue\SerializesModels;
use Str; use Str;
class ContainerStatusJob implements ShouldQueue, ShouldBeUnique, ShouldBeEncrypted class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
@ -89,7 +89,6 @@ public function handle(): void
$labels = data_get($container, 'Config.Labels'); $labels = data_get($container, 'Config.Labels');
$labels = Arr::undot(format_docker_labels_to_json($labels)); $labels = Arr::undot(format_docker_labels_to_json($labels));
$labelId = data_get($labels, 'coolify.applicationId'); $labelId = data_get($labels, 'coolify.applicationId');
ray($labelId);
if ($labelId) { if ($labelId) {
if (str_contains($labelId,'-pr-')) { if (str_contains($labelId,'-pr-')) {
$previewId = (int) Str::after($labelId, '-pr-'); $previewId = (int) Str::after($labelId, '-pr-');