fix(docker): pass the application to the container lookup in scheduled tasks

af983a29d changed getCurrentApplicationContainerStatus() to take the
application model, but missed this caller. Scheduled tasks of an
application failed with a TypeError.
This commit is contained in:
Andras Bacsai
2026-09-29 09:59:51 +02:00
parent 0393d4e931
commit 2928a27966
+1 -1
View File
@@ -127,7 +127,7 @@ class ScheduledTaskJob implements ShouldBeEncrypted, ShouldQueue
$this->executionId = $this->task_log->id;
if ($this->resource->type() === 'application') {
$containers = getCurrentApplicationContainerStatus($this->server, $this->resource->id, 0);
$containers = getCurrentApplicationContainerStatus($this->server, $this->resource, 0);
if ($containers->count() > 0) {
$containers->each(function ($container) {
$this->containers[] = str_replace('/', '', $container['Names']);