mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
bug fix result of generate invoice online topup
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user