Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d1cf116

Browse files
committed
fix api call
1 parent e710cb3 commit d1cf116

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
*.iml
2+
*.ipr
3+
*.iws
14
*.log
25
log
36
pids

initializers/challengeHelper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ exports.challengeHelper = function (api, next) {
357357
cbx(!(_.isNull(record.user_group_xref_found) || _.isUndefined(record.user_group_xref_found)));
358358
} else {
359359
// New challenges: query the V3 API
360-
api.v3client.isUserInGroup(connection, userId, record.group_id, function (err, result) {
360+
api.v3client.isUserInGroup(connection, record.group_id, function (err, result) {
361361
if (err) {
362362
error = err;
363363
cbx(true);

initializers/v3client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ exports.v3client = function (api, next) {
252252
* @param {Object} connection - the connection object provided by ActionHero
253253
* @param {Number} groupId - the group ID
254254
* @param {Function<err, isIn>} callback - the callback. The second parameter
255-
* is boolean vwhich is true if the user is found in the group.
255+
* is boolean which is true if the user has group id in challenge groups.
256256
*/
257257
isUserInGroup: function (connection, groupId, callback) {
258258
getMemberGroups(connection, function (err, groupIds) {

0 commit comments

Comments
 (0)