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

Commit 06ab184

Browse files
committed
Fixing the return
1 parent 9a59b29 commit 06ab184

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/groupsService.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ async function getChallengeEligibilityId (connection, challengeLegacyId) {
125125
// await createChallengeEligibilityRecord(connection, challengeLegacyId)
126126
// result = await connection.queryAsync(util.format(QUERY_GET_ELIGIBILITY_ID, challengeLegacyId))
127127
// }
128-
if (result) return { eligibilityId: result[0].contest_eligibility_id }
129-
return false
128+
return result[0].contest_eligibility_id || false
130129
}
131130

132131
/**

0 commit comments

Comments
 (0)