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

Commit d09510b

Browse files
authored
Merge pull request #75 from yoution/feature/projectid
fix: add MARATHON_MATCH_PROJECT_INFO_TYPE_ID
2 parents 7bff5cf + 1b42d4a commit d09510b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,6 @@ module.exports = {
227227
}
228228
},
229229

230-
COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot'
230+
COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot',
231+
MARATHON_MATCH_PROJECT_INFO_TYPE_ID: 56
231232
}

src/services/challengeInformixService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const _ = require('lodash')
2+
const config = require('config')
23
const logger = require('../util/logger')
34
const helper = require('../util/helper')
45
// const getErrorService = require('./errorService')
@@ -12,7 +13,7 @@ async function getProjectIdFromIfx (roundId) {
1213
const sql = `SELECT limit 1
1314
project_id
1415
FROM project_info
15-
WHERE value = ${roundId} and project_info_type_id = 56
16+
WHERE value = ${roundId} and project_info_type_id = ${config.MARATHON_MATCH_PROJECT_INFO_TYPE_ID}
1617
`
1718
// logger.info(`projectId SQL: ${sql}`)
1819
return execQuery(sql)

0 commit comments

Comments
 (0)