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

Commit c156bac

Browse files
committed
Trying... again...
1 parent 97d41f5 commit c156bac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/groupsService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ async function getChallengeEligibilityId (connection, challengeLegacyId) {
131131
*/
132132
async function groupEligbilityExists (connection, eligibilityId, groupLegacyId) {
133133
logger.debug(`groupEligibiltyExists query ${util.format(QUERY_GET_GROUP_ELIGIBILITY_ID, eligibilityId, groupLegacyId)}`)
134-
return connection.queryAsync(util.format(QUERY_GET_GROUP_ELIGIBILITY_ID, eligibilityId, groupLegacyId)) || false
134+
const result = connection.queryAsync(util.format(QUERY_GET_GROUP_ELIGIBILITY_ID, eligibilityId, groupLegacyId))
135+
logger.debug(`groupEligibiltyExists result ${JSON.stringify(result)}`)
136+
return (result && result[0]) || false
135137
}
136138

137139
async function createChallengeEligibilityRecord (connection, challengeLegacyId) {

0 commit comments

Comments
 (0)