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

fix: add MARATHON_MATCH_PROJECT_INFO_TYPE_ID #75

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,6 @@ module.exports = {
}
},

COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot'
COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot',
MARATHON_MATCH_PROJECT_INFO_TYPE_ID: 56
}
3 changes: 2 additions & 1 deletion src/services/challengeInformixService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const _ = require('lodash')
const config = require('config')
const logger = require('../util/logger')
const helper = require('../util/helper')
// const getErrorService = require('./errorService')
Expand All @@ -12,7 +13,7 @@ async function getProjectIdFromIfx (roundId) {
const sql = `SELECT limit 1
project_id
FROM project_info
WHERE value = ${roundId} and project_info_type_id = 56
WHERE value = ${roundId} and project_info_type_id = ${config.MARATHON_MATCH_PROJECT_INFO_TYPE_ID}
`
// logger.info(`projectId SQL: ${sql}`)
return execQuery(sql)
Expand Down