Skip to content

Commit

Permalink
fix: unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Oct 24, 2024
1 parent ebe6b42 commit edc15e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/grantee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { http } from '../utils/http'
const granteeEndpoint = 'grantee'

export async function getGrantees(reference: string, requestOptions: BeeRequestOptions): Promise<GetGranteesResult> {
const response = await http<GetGranteesResult>(requestOptions, {
const response = await http<string[]>(requestOptions, {
method: 'get',
url: `${granteeEndpoint}/${reference}`,
responseType: 'json',
Expand All @@ -14,7 +14,7 @@ export async function getGrantees(reference: string, requestOptions: BeeRequestO
return {
status: response.status,
statusText: response.statusText,
data: response.data.data,
data: response.data,
}
}

Expand Down

0 comments on commit edc15e5

Please sign in to comment.