bug fix result of generate invoice online topup

This commit is contained in:
Mohamad Ihsan
2026-05-08 12:35:07 +07:00
parent 3027dd30b3
commit 69fe9b97d8
@@ -2,9 +2,9 @@
// GET PARTNER, MERCHANT, TERMINAL FROM TID
const generateInvoice = async (invoiceDate, repost, trx) => {
let result = await trx.select(trx.raw(`* FROM payment.sp_payment_req_topup_online('${invoiceDate}', ${repost})`))
let result = await trx.raw(`SELECT * FROM payment.sp_payment_req_topup_online('${invoiceDate}', ${repost})`)
return result;
return result.rows || result;
}