mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 20:49:32 +00:00
fix: cannot delete env with available services
This commit is contained in:
@@ -14,7 +14,7 @@ class Environment extends Model
|
||||
|
||||
public function can_delete_environment()
|
||||
{
|
||||
return $this->applications()->count() == 0 && $this->postgresqls()->count() == 0;
|
||||
return $this->applications()->count() == 0 && $this->postgresqls()->count() == 0 && $this->services()->count() == 0;
|
||||
}
|
||||
|
||||
public function applications()
|
||||
|
||||
Reference in New Issue
Block a user