We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492917c commit 8285178Copy full SHA for 8285178
src/services/members.js
@@ -87,7 +87,7 @@ class MembersService {
87
* @return {Promise} Resolves to the stats object.
88
*/
89
async getStats(handle, groupIds) {
90
- if (!groupIds) {
+ if (!groupIds || (_.isArray(groupIds) && groupIds.length === 0)) {
91
const res = await this.private.api.get(`/members/${handle}/stats`);
92
return getApiResponsePayload(res);
93
}
0 commit comments