@flashbacktech/flashbackclient 0.1.7 → 0.1.9

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.
@@ -268,6 +268,9 @@ class ApiClient {
268
268
  };
269
269
  this.getNodeStatsDaily = async (params) => {
270
270
  const queryParams = new URLSearchParams();
271
+ if (params.unitId.length > 0) {
272
+ queryParams.append('unitId', params.unitId.join(','));
273
+ }
271
274
  if (params.startDate) {
272
275
  queryParams.append('startDate', params.startDate.toString());
273
276
  }
@@ -52,7 +52,7 @@ export interface NodeStatsQueryParams {
52
52
  unitId: string[];
53
53
  }
54
54
  export interface NodeStatsDailyQueryParams {
55
- unitId: string[];
55
+ unitId: string;
56
56
  startDate?: number;
57
57
  endDate?: number;
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"