Skip to content

Commit

Permalink
Fix typo on variable name (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
datalek authored Sep 16, 2024
1 parent 4ddd7d0 commit 85b27ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/azure-functions-api/src/functions/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const applicativeValidation = RTE.getApplicativeReaderTaskValidation(
RA.getSemigroup<string>(),
);

const dummyHelthCheck = (): TE.TaskEither<ReadonlyArray<string>, true> =>
const dummyHealthCheck = (): TE.TaskEither<ReadonlyArray<string>, true> =>
TE.of(true);

export const makeInfoHandler: H.Handler<
Expand All @@ -23,7 +23,7 @@ export const makeInfoHandler: H.Handler<
> = H.of((_: H.HttpRequest) =>
pipe(
// TODO: Add all the function health checks
[dummyHelthCheck],
[dummyHealthCheck],
RA.sequence(applicativeValidation),
RTE.map(() => H.successJson({ name: "it works!", version: "0.0.1" })),
RTE.mapLeft((problems) => new H.HttpError(problems.join("\n\n"))),
Expand Down

0 comments on commit 85b27ca

Please sign in to comment.