refactor: debug api balances
This commit is contained in:
@@ -168,7 +168,7 @@ export const useApiPeerBalances = () => {
|
|||||||
setLoading(true)
|
setLoading(true)
|
||||||
beeDebugApi.balance.balances()
|
beeDebugApi.balance.balances()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
setPeerBalances(res.data)
|
setPeerBalances(res)
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
setError(error)
|
setError(error)
|
||||||
|
|||||||
+1
-10
@@ -71,16 +71,7 @@ export const beeDebugApi = {
|
|||||||
},
|
},
|
||||||
balance: {
|
balance: {
|
||||||
balances() {
|
balances() {
|
||||||
return beeDebugApiClient().get(`/balances`)
|
return beeJSDebugClient().getAllBalances()
|
||||||
},
|
|
||||||
peerBalance(peerId: string) {
|
|
||||||
return beeDebugApiClient().get(`/balances/${peerId}`)
|
|
||||||
},
|
|
||||||
consumed() {
|
|
||||||
return beeDebugApiClient().get(`/consumed`)
|
|
||||||
},
|
|
||||||
peerConsumed(peerId: string) {
|
|
||||||
return beeDebugApiClient().get(`/consumed/${peerId}`)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
chequebook: {
|
chequebook: {
|
||||||
|
|||||||
Reference in New Issue
Block a user