Skip to content

Commit

Permalink
fix faceook
Browse files Browse the repository at this point in the history
  • Loading branch information
waelhanfi04 committed Jan 11, 2024
1 parent 3441cda commit 30f4e0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/external.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ module.exports.externalAnswer = async (req, res) => {
stats = await answerOne(
link.typeSN + '',
link.idPost + '',
link.typeSN === '5' ? link.idUser+ '' : externalWallet.UserId+ '',
link.typeSN === '5' || link.typeSN === '1' ? link.idUser+ '' : externalWallet.UserId+ '',
link.typeURL,
linkedinData,
tiktokProfile,
Expand Down
4 changes: 0 additions & 4 deletions web3/campaigns.js
Original file line number Diff line number Diff line change
Expand Up @@ -1447,15 +1447,11 @@ exports.getTransactionAmountExternal = async (
let web3 = await new Web3(
new Web3.providers.HttpProvider(await exports.getProviderUrl(network), options)
)
console.log(transactionHash)
await new Promise(resolve => setTimeout(resolve, 15000));
console.log(transactionHash,"done")

let data = await new web3.eth.getTransactionReceipt(transactionHash)
console.log(data)

let amount = type === 'BTTC' ? data.logs[1].data : data.logs[0].data
console.log(amount)
let hex = web3.utils.hexToNumberString(amount)
return hex
} catch (e) {console.log("error",e)}
Expand Down

0 comments on commit 30f4e0a

Please sign in to comment.