mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 20:56:28 +00:00
update
This commit is contained in:
@@ -1356,7 +1356,7 @@ const loadingBalanceInsert = async (param) => {
|
||||
winston.logger.warn(`${uniqueCode} inserting load balance transaction...`);
|
||||
|
||||
// insert transaction
|
||||
await model.insertLoadingBalance(
|
||||
let insert = await model.insertLoadingBalance(
|
||||
data,
|
||||
detail,
|
||||
reservation_number,
|
||||
@@ -1368,8 +1368,28 @@ const loadingBalanceInsert = async (param) => {
|
||||
flag
|
||||
);
|
||||
|
||||
// log warn
|
||||
winston.logger.warn(
|
||||
`${uniqueCode} AAAAAAAAAAAAAAAAAA [DATA] : ${JSON.stringify(
|
||||
data
|
||||
)} [DETAIL] : ${JSON.stringify(detail)} [RSV] : ${JSON.stringify(
|
||||
reservation_number
|
||||
)} [NOW] : ${JSON.stringify(now)} [WRITE STATUS] : ${JSON.stringify(
|
||||
write_status
|
||||
)} [CARD NUMBER] : ${JSON.stringify(
|
||||
card_number
|
||||
)} [UID] : ${JSON.stringify(uid)} [BALANCE] : ${JSON.stringify(
|
||||
balance
|
||||
)} [FLAG] : ${JSON.stringify(flag)}`
|
||||
);
|
||||
|
||||
// log warn
|
||||
winston.logger.warn(
|
||||
`${uniqueCode} BBBBBBBBBBBBBBBBBBBBBB ${JSON.stringify(insert)}`
|
||||
);
|
||||
|
||||
result = {
|
||||
code: '00',
|
||||
code: '99',
|
||||
message: write_status
|
||||
? 'transaction saved successfully. Err: failed write to the card'
|
||||
: 'balance loaded successfully',
|
||||
|
||||
Reference in New Issue
Block a user