mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 16:15:17 +00:00
Always prefer stricter string comparisons.
This commit is contained in:
1 parent
79d5434da2
commit
601f1a4717
25 files changed
+55
-55
No files matched your search
@@ -76,14 +76,14 @@ class ScheduledTaskJob implements ShouldQueue
|
||||
|
||||
$this->server = $this->resource->destination->server;
|
||||
|
||||
if ($this->resource->type() == 'application') {
|
||||
if ($this->resource->type() === 'application') {
|
||||
$containers = getCurrentApplicationContainerStatus($this->server, $this->resource->id, 0);
|
||||
if ($containers->count() > 0) {
|
||||
$containers->each(function ($container) {
|
||||
$this->containers[] = str_replace('/', '', $container['Names']);
|
||||
});
|
||||
}
|
||||
} elseif ($this->resource->type() == 'service') {
|
||||
} elseif ($this->resource->type() === 'service') {
|
||||
$this->resource->applications()->get()->each(function ($application) {
|
||||
if (str(data_get($application, 'status'))->contains('running')) {
|
||||
$this->containers[] = data_get($application, 'name').'-'.data_get($this->resource, 'uuid');
|
||||
|
||||
Reference in new issue
Block a user