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

Commit 9a59b29

Browse files
committed
Trying again.
1 parent ce329cb commit 9a59b29

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
@@ -20,6 +20,7 @@ const QUERY_DELETE_CONTEST_ELIGIBILITY = 'DELETE FROM contest_eligibility WHERE
2020
* @return {Object} Informix statement
2121
*/
2222
async function prepare (connection, sql) {
23+
logger.debug(`Preparing SQL ${sql}`)
2324
const stmt = await connection.prepareAsync(sql)
2425
return Promise.promisifyAll(stmt)
2526
}
@@ -116,8 +117,9 @@ async function removeGroupFromChallenge (challengeLegacyId, groupLegacyId) {
116117
*/
117118
async function getChallengeEligibilityId (connection, challengeLegacyId) {
118119
// get the challenge eligibility record, if one doesn't exist, create it and return the id
120+
logger.info(`getChallengeEligibilityId Query: ${util.format(QUERY_GET_ELIGIBILITY_ID, challengeLegacyId)}`)
119121
const result = await connection.queryAsync(util.format(QUERY_GET_ELIGIBILITY_ID, challengeLegacyId))
120-
logger.info(`getChallengeEligibilityId Result Query: ${util.format(QUERY_GET_ELIGIBILITY_ID, challengeLegacyId)} result ${JSON.stringify(result)}`)
122+
logger.info(`getChallengeEligibilityId Result: ${JSON.stringify(result)}`)
121123
// if (result.length === 0) {
122124
// logger.debug(`getChallengeEligibility not found, creating ${challengeLegacyId}`)
123125
// await createChallengeEligibilityRecord(connection, challengeLegacyId)

0 commit comments

Comments
 (0)