From 1a4fc9535a89b58e8b67c8996ade0b833116af3a Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 17 Aug 2025 23:50:24 -0700 Subject: Move to pengueno. --- lib/healthcheck.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/healthcheck.ts (limited to 'lib/healthcheck.ts') diff --git a/lib/healthcheck.ts b/lib/healthcheck.ts new file mode 100644 index 0000000..3ecc0eb --- /dev/null +++ b/lib/healthcheck.ts @@ -0,0 +1,18 @@ +import { + TraceUtil, + IEither, + ITraceable, + HealthChecker, + HealthCheckInput, + HealthCheckOutput, + ServerTrace, + Either, +} from '@emprespresso/pengueno'; + +export const healthCheck: HealthChecker = ( + input: ITraceable, +): Promise> => + input + .flatMap(TraceUtil.withFunctionTrace(healthCheck)) + .move(Promise.resolve(Either.right(HealthCheckOutput.YAASSSLAYQUEEN))) + .get(); -- cgit v1.2.3-70-g09d2