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

Commit f1f7704

Browse files
fix typos
1 parent d0f3ea3 commit f1f7704

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/paymentService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ async function createPayment(payment) {
7979
const connection = await helper.getInformixConnection()
8080
await connection.beginTransactionAsync()
8181

82-
const paymentExists = await paymentExists(payment, connection)
83-
logger.debug(`Payment Exists Response: ${JSON.stringify(paymentExists)}`)
84-
if (!paymentExists || paymentExists.length === 0) {
82+
const existing = await paymentExists(payment, connection)
83+
logger.debug(`Payment Exists Response: ${JSON.stringify(existing)}`)
84+
if (!existing || existing.length === 0) {
8585
const paymentDetailId = await paymentDetailIdGen.getNextId()
8686
const paymentId = await paymentIdGen.getNextId()
8787
const insertDetail = await prepare(connection, INSERT_PAYMENT_DETAIL)
@@ -95,7 +95,7 @@ async function createPayment(payment) {
9595
logger.info(`Payment ${paymentId} with detail ${paymentDetailId} has been inserted`)
9696
await connection.commitTransactionAsync()
9797
} else {
98-
logger.error(`Payment Exists for ${payment.v5ChallengeId}, skipping - ${JSON.stringify(paymentExists)}`)
98+
logger.error(`Payment Exists for ${payment.v5ChallengeId}, skipping - ${JSON.stringify(existing)}`)
9999
await connection.commitTransactionAsync()
100100
}
101101
} catch (e) {

0 commit comments

Comments
 (0)