This repository was archived by the owner on Jan 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ module.exports = {
40
40
// Topcoder APIs
41
41
TC_API : process . env . TC_API || 'https://api.topcoder-dev.com/v5' ,
42
42
43
- PAYMENT_STATUS_ID : process . env . PAYMENT_STATUS_ID || 56 ,
43
+ PAYMENT_STATUS_ID : process . env . PAYMENT_STATUS_ID || 55 , // on hold
44
44
MODIFICATION_RATIONALE_ID : process . env . MODIFICATION_RATIONALE_ID || 1 ,
45
45
WINNER_PAYMENT_TYPE_ID : process . env . WINNER_PAYMENT_TYPE_ID || 72 ,
46
46
COPILOT_PAYMENT_TYPE_ID : process . env . COPILOT_PAYMENT_TYPE_ID || 74 ,
47
47
48
- V5_PAYMENT_DETAIL_STATUS_ID : process . env . V5_PAYMENT_DETAIL_STATUS_ID || 500 ,
48
+ V5_PAYMENT_DETAIL_STATUS_REASON_ID : process . env . V5_PAYMENT_DETAIL_STATUS_REASON_ID || 500 ,
49
49
50
50
PAYMENT_METHOD_ID : process . env . PAYMENT_METHOD_ID || 1 ,
51
51
CHARITY_IND : process . env . CHARITY_IND || 0 ,
Original file line number Diff line number Diff line change 4
4
*/
5
5
const logger = require ( '../common/logger' )
6
6
const helper = require ( '../common/helper' )
7
+ const config = require ( 'config' ) ;
7
8
const IDGenerator = require ( '../common/idGenerator' )
8
9
9
10
// the paymentDetailId's generator
@@ -49,7 +50,7 @@ async function createPayment (payment) {
49
50
const insertDetailXref = await prepare ( connection , INSERT_PAYMENT_DETAIL_XREF )
50
51
await insertDetailXref . executeAsync ( [ paymentId , paymentDetailId ] )
51
52
const insertStatusXref = await prepare ( connection , INSERT_PAYMENT_STATUS_REASON_XREF )
52
- await insertStatusXref . executeAsync ( [ paymentDetailId , V5_PAYMENT_DETAIL_STATUS_ID ] )
53
+ await insertStatusXref . executeAsync ( [ paymentDetailId , config . V5_PAYMENT_DETAIL_STATUS_REASON_ID ] )
53
54
logger . info ( `Payment ${ paymentId } with detail ${ paymentDetailId } has been inserted` )
54
55
await connection . commitTransactionAsync ( )
55
56
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments