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