Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,551 changes: 1,551 additions & 0 deletions dist/dev/index.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions dist/prod/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
"test": "npm run lint && npm run jest"
},
"version": "0.13.0",
"version": "0.14.0",
"dependencies": {
"auth0-js": "^6.8.4",
"config": "^3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/actions/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ async function getStatsHistoryInit(handle, uuid) {
* @param {String} tokenV3 v3 auth token.
* @return {Action}
*/
async function getStatsHistoryDone(handle, uuid, tokenV3) {
const data = await getService(tokenV3).getStatsHistory(handle);
async function getStatsHistoryDone(handle, groupIds, uuid, tokenV3) {
const data = await getService(tokenV3).getStatsHistory(handle, groupIds);
return { data, handle, uuid };
}

Expand Down
9 changes: 7 additions & 2 deletions src/services/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ class MembersService {
* @param {String} handle
* @return {Promise} Resolves to the stats object.
*/
async getStatsHistory(handle) {
const res = await this.private.api.get(`/members/${handle}/stats/history`);
async getStatsHistory(handle, groupIds) {
let res;
if (groupIds) {
res = await this.private.api.get(`/members/${handle}/stats/history?groupIds=${groupIds}`);
} else {
res = await this.private.api.get(`/members/${handle}/stats/history`);
}
return getApiResponsePayload(res);
}

Expand Down