mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
refactor downstream for 036 changes (#2577)
refactor codebase for 036 changes
This commit is contained in:
@@ -52,10 +52,6 @@ function getHealthStatus(status: Status): HealthStatus | null {
|
||||
|
||||
const values = Object.values(status.main.health)
|
||||
|
||||
if (values.some(h => !h.result)) {
|
||||
return HealthStatus.Waiting
|
||||
}
|
||||
|
||||
if (values.some(h => h.result === 'failure')) {
|
||||
return HealthStatus.Failure
|
||||
}
|
||||
@@ -101,7 +97,6 @@ export enum DependencyStatus {
|
||||
|
||||
export enum HealthStatus {
|
||||
Failure = 'failure',
|
||||
Waiting = 'waiting',
|
||||
Starting = 'starting',
|
||||
Loading = 'loading',
|
||||
Healthy = 'healthy',
|
||||
|
||||
Reference in New Issue
Block a user