bug fixed variable

This commit is contained in:
2025-03-21 10:38:34 +07:00
parent 7eff55e7f3
commit 060c9d0b0b
@@ -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(