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

Commit e6aae4f

Browse files
fix issue with connection not defined
1 parent 53f6182 commit e6aae4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/paymentService.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ async function paymentExists(payment, connection) {
7575
* @param {Object} payment the payment info
7676
*/
7777
async function createPayment(payment) {
78+
let connection
7879
try {
79-
const connection = await helper.getInformixConnection()
80+
connection = await helper.getInformixConnection()
8081
await connection.beginTransactionAsync()
8182

8283
const existing = await paymentExists(payment, connection)

0 commit comments

Comments
 (0)