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

Commit f3ea5e5

Browse files
committed
Missed an await
1 parent 1fc3409 commit f3ea5e5

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
@@ -131,7 +131,7 @@ 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-
const result = connection.queryAsync(util.format(QUERY_GET_GROUP_ELIGIBILITY_ID, eligibilityId, groupLegacyId))
134+
const result = await connection.queryAsync(util.format(QUERY_GET_GROUP_ELIGIBILITY_ID, eligibilityId, groupLegacyId))
135135
logger.debug(`groupEligibiltyExists result ${JSON.stringify(result)} ${JSON.stringify(result[0])}`)
136136
return (result && result[0]) || false
137137
}

0 commit comments

Comments
 (0)