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

Commit fe5b548

Browse files
fix remove groups
1 parent 9148266 commit fe5b548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/groupsService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function removeGroupFromChallenge (challengeLegacyId, groupLegacyId) {
9595
const eligibilityIds = await getChallengeEligibilityIds(connection, challengeLegacyId)
9696
if (eligibilityIds && eligibilityIds.length > 0) {
9797
const groups = await getGroupsForEligibilityIds(connection, eligibilityIds)
98-
const groupToRemove = _.find(groups, g => group_id === groupLegacyId)
98+
const groupToRemove = _.find(groups, g => g.group_id === groupLegacyId)
9999
if (groupToRemove) {
100100
await clearData(groupToRemove.contest_eligibility_id, groupToRemove.group_id)
101101
}

0 commit comments

Comments
 (0)