mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:26:28 +00:00
update
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user