mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user