fixed missing typeof error

This commit is contained in:
Abhishek Sinha 2020-07-30 18:21:30 +05:30
parent abd2b83f37
commit f5443d153d

View File

@ -11409,8 +11409,8 @@
enumerable: false
});
const ENVR = 'TEST'; // LIVE, TEST
const WS = 'ws';
const ENVR = 'LIVE'; // LIVE, TEST
const WS = 'wss';
const DBName = "paymentsHandlerDBRemote";
if(ENVR === 'LIVE') {
@ -14101,7 +14101,7 @@
const all_deposits = await readAllDB('deposits');
let t = `<ul>`;
for (const ad of all_deposits) {
if(ad.token_transfer_txid !=="string") continue;
if(typeof ad.token_transfer_txid !=="string") continue;
t += `<li>User UPI: ${ad.user_upi}</li>`;
t += `<li>Time: ${ad.timestamp}</li>`;
t += `<li>Amount: ${ad.depositing_amount}</li>`;
@ -14124,7 +14124,7 @@
const all_withdraws = await readAllDB('withdraws');
let t = `<ul>`;
for (const ad of all_withdraws) {
if(ad.upi_txid !=="string") continue;
if(typeof ad.upi_txid !=="string") continue;
t += `<li>Cashier UPI TXID: ${ad.upi_txid}</li>`;
t += `<li>Time: ${ad.timestamp}</li>`;
t += `<li>Amount: ${ad.withdraw_amount}</li>`;