mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:06:28 +00:00
bug fixed variable
This commit is contained in:
@@ -119,9 +119,9 @@ const getReservationPendingV2 = (cardNumber, time, flag) => {
|
||||
|
||||
// GET RESERVATION PENDING WITH COMPARE FLAG COUNTER
|
||||
const getReservationPendingWithFlagCounter = (cardNumber, time, flag) => {
|
||||
|
||||
let result
|
||||
if (flag == '0' || flag == 0) {
|
||||
let result = knex('trx.t_d_reservation_balance')
|
||||
result = knex('trx.t_d_reservation_balance')
|
||||
// .sum("i_reservation_amount as total_reservation_amount")
|
||||
// .count("* as total_reservation")
|
||||
.select(
|
||||
@@ -136,7 +136,7 @@ const getReservationPendingWithFlagCounter = (cardNumber, time, flag) => {
|
||||
// .where("d_expired", ">=", time)
|
||||
.where('c_flag', '!=', '-1');
|
||||
} else {
|
||||
let result = knex('trx.t_d_reservation_balance')
|
||||
result = knex('trx.t_d_reservation_balance')
|
||||
// .sum("i_reservation_amount as total_reservation_amount")
|
||||
// .count("* as total_reservation")
|
||||
.select(
|
||||
|
||||
Reference in New Issue
Block a user