diff options
Diffstat (limited to 'hooks/server/health.ts')
-rw-r--r-- | hooks/server/health.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hooks/server/health.ts b/hooks/server/health.ts index 2f67aa4..1acc074 100644 --- a/hooks/server/health.ts +++ b/hooks/server/health.ts @@ -13,13 +13,16 @@ import { export const healthCheck: HealthChecker = ( input: ITraceable<HealthCheckInput, ServerTrace>, ): Promise<IEither<Error, HealthCheckOutput>> => - input.bimap(TraceUtil.withFunctionTrace(healthCheck)) + input + .bimap(TraceUtil.withFunctionTrace(healthCheck)) .move(getRequiredEnv("LAMINAR_HOST")) // ensure LAMINAR_HOST is propagated to getStdout for other procedures .map((e) => e.get().moveRight(["laminarc", "show-jobs"])) .map((i) => - i.get().mapRight(i.move.apply) + i + .get() + .mapRight(i.move.apply) .flatMapAsync(getStdout.apply) - .then((gotJobs) => gotJobs.moveRight(HealthCheckOutput.YAASSSLAYQUEEN)) + .then((gotJobs) => gotJobs.moveRight(HealthCheckOutput.YAASSSLAYQUEEN)), ) .get(); |