This commit is contained in:
2023-03-03 16:07:12 +07:00
parent 47dc7eecc9
commit 1af459fc4e
2 changed files with 2 additions and 2 deletions
@@ -202,7 +202,7 @@ const loadingBalanceRequest = async (req, res) => {
const cardHistory = await model.checkCardHistory(card_number);
if (cardHistory.length > 0) {
if (cardHistory.i_log_name == '21') {
if (cardHistory.i_log_name == 21 && cardHistory.c_source == 'CMS') {
if (getReservationPending.length > 0) {
// insert semua reserve balance ke fraud
const dataFraud = [];
@@ -920,7 +920,7 @@ const suspendReservation = (reservationNumber, datetime) => {
// CHECK HISTORY CARD
const checkCardHistory = (c_card_number) => {
let result = knex('log.t_log_card')
.select(['i_log_name'])
// .select(['i_log_name'])
.where('c_card_number', c_card_number)
.whereIn('i_log_name', [21, 90])
.where('c_source', 'CMS')