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

Commit 93f5e07

Browse files
author
James Cori
committed
Fixing check query
1 parent 1d50aed commit 93f5e07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/paymentService.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ async function prepare (connection, sql) {
5454
async function paymentExists(payment) {
5555
const connection = await helper.getInformixConnection()
5656
try {
57-
logger.debug(`paymentExists - ${QUERY_PAYMENT}`)
58-
return connection.queryAsync(QUERY_PAYMENT)
57+
const query = util.format(QUERY_PAYMENT, payment.memberId, payment.v5ChallengeId, payment.typeId)
58+
logger.debug(`Checking if paymentExists - ${query}`)
59+
return connection.queryAsync(query)
5960
} catch (e) {
6061
logger.error(`Error in 'getGroupsForChallenge' ${e}`)
6162
throw e

0 commit comments

Comments
 (0)