From adec558eb488ae5fb295684a5adfcf0b92931a3c Mon Sep 17 00:00:00 2001 From: raniamorheg Date: Mon, 11 Sep 2023 13:37:47 +0100 Subject: [PATCH] remove logs --- controllers/profile.controller.js | 6 +++--- helpers/common.js | 2 +- web3/wallets.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/profile.controller.js b/controllers/profile.controller.js index df801be5..889a0536 100644 --- a/controllers/profile.controller.js +++ b/controllers/profile.controller.js @@ -137,7 +137,7 @@ exports.account = async (req, res) => { fireBaseAccessToken, ...user } = req.user.toObject() - console.log({user}) + return makeResponseData(res, 200, 'success', user) } else { return makeResponseError(res, 204, 'user not found') @@ -1152,11 +1152,11 @@ module.exports.verifyLink = async (req, response) => { instagram_id: { $exists: true } , threads_id: { $exists: true } },{threads_id : 1, instagram_username: 1}).lean() - console.log({threads}) + if (threads) { linked = true res = await verifyThread(idPost,threads.threads_id, threads.instagram_username) - console.log({res}) + if (res === 'deactivate') deactivate = true } diff --git a/helpers/common.js b/helpers/common.js index 1472a1f6..a5339405 100644 --- a/helpers/common.js +++ b/helpers/common.js @@ -452,7 +452,7 @@ exports.BalanceUsersStats = async (condition) => { ) { counter++ } else { - console.log('user balance: ' + result.Balance, 'userId: ' + id) + user[condition].unshift(result) if (user[condition].length > 7) { user[condition].pop() diff --git a/web3/wallets.js b/web3/wallets.js index 24769f1e..3b251a8f 100644 --- a/web3/wallets.js +++ b/web3/wallets.js @@ -1010,7 +1010,7 @@ exports.getNativeBalance = async (web3Instance, walletAddress, network) => { exports.getTronBalance = async (webTron, token, address, isTrx = false) => { try { if (isTrx) { - console.log({trx: webTron.trx}) + let amount = await webTron.trx.getBalance(address) return amount.toString() }