Skip to content

Commit

Permalink
Merge pull request #42 from blockfrost/hackaton-release
Browse files Browse the repository at this point in the history
fix: health response
  • Loading branch information
1000101 authored May 20, 2021
2 parents 11d5c2a + a1f103d commit 6e78853
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.6] - 2021-05-20

### Fixed

- health endpoint response

## [0.2.5] - 2021-05-19

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/blockfrost-js",
"version": "0.2.5",
"version": "0.2.6",
"description": "A JavaScript/TypeScript SDK for interacting with the https://blockfrost.io API",
"files": [
"lib/**/*.js",
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/health/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from 'axios';
import { getHeaders, handleError } from '../../utils';
import { BlockFrostAPI } from '../../index';

export function health(this: BlockFrostAPI): Promise<{ isHealthy: boolean }> {
export function health(this: BlockFrostAPI): Promise<{ is_healthy: boolean }> {
return new Promise((resolve, reject) => {
axios
.get(`${this.apiUrl}/health`, {
Expand Down

0 comments on commit 6e78853

Please sign in to comment.