Skip to content

Commit

Permalink
Merge pull request #169 from Holo-Host/fix/hpos-version-endpoint
Browse files Browse the repository at this point in the history
Fix hpos version endpoint
  • Loading branch information
zo-el authored Jul 23, 2024
2 parents bfa93d8 + d31809c commit b89d959
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/interfaces/HposInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ interface HoloFuelProfileResponse {
avatar_url: string
}

type CoreAppVersionResponse = string | null
interface CoreAppVersionResponse {
version: string
}

export interface HostPreferencesResponse {
price_compute: string
Expand Down Expand Up @@ -858,7 +860,7 @@ export function useHposInterface(): HposInterface {
try {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const coreAppVersion = await hposHolochainCall({
const { version: coreAppVersion } = await hposHolochainCall({
method: 'get',
path: '/apps/core/version'
})
Expand Down

0 comments on commit b89d959

Please sign in to comment.