bug fixed

This commit is contained in:
2025-03-26 15:17:56 +07:00
parent 5259fd89ef
commit 9af6f4f823
@@ -132,7 +132,7 @@ const getReservationPendingWithFlagCounter = (cardNumber, time, flag) => {
)
.where('c_card_number', cardNumber)
.whereIn('c_status', ['P', 'I'])
.whereRaw('??::INT < ??', ['c_flag', parseInt(255)])
.whereRaw('??::INT <= ??', ['c_flag', parseInt(255)])
// .where("d_expired", ">=", time)
.where('c_flag', '!=', '-1');
} else {