@riocrypto/common 1.0.941 → 1.0.942
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -383,9 +383,13 @@ class RioClient {
|
|
|
383
383
|
return response.data;
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
getCryptoBalance(asset) {
|
|
386
|
+
getCryptoBalance(asset, userId) {
|
|
387
387
|
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
-
const response = yield this.axios.get(`/api/wallet/balances/user/${asset}
|
|
388
|
+
const response = yield this.axios.get(`/api/wallet/balances/user/${asset}`, {
|
|
389
|
+
params: {
|
|
390
|
+
userId: userId ? userId : undefined,
|
|
391
|
+
},
|
|
392
|
+
});
|
|
389
393
|
return response.data.balance;
|
|
390
394
|
});
|
|
391
395
|
}
|