Skip to content

Commit

Permalink
remove logs (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksibisamir authored Sep 13, 2023
2 parents 309274a + adec558 commit 090db52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions controllers/profile.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion helpers/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion web3/wallets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,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()
}
Expand Down

0 comments on commit 090db52

Please sign in to comment.