@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.
@@ -106,5 +106,5 @@ export declare class RioClient {
106
106
  missing: string[];
107
107
  }>;
108
108
  getInvoice(orderId: string): Promise<Invoice>;
109
- getCryptoBalance(asset: Crypto): Promise<number>;
109
+ getCryptoBalance(asset: Crypto, userId?: string): Promise<number>;
110
110
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.941",
3
+ "version": "1.0.942",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",