fix: 刷新接口

This commit is contained in:
chaosBreaking
2019-09-08 22:54:32 +08:00
parent 110c6b9c59
commit 735d024193

View File

@@ -67,7 +67,7 @@ const FundModel = mongoose.model('Fund', FundSchema);
FundModel.prototype.hasNewDeposit = async function () { FundModel.prototype.hasNewDeposit = async function () {
if (this.tokenAddress.usdtETH) { if (this.tokenAddress.usdtETH) {
const usdtTx = await getUSDTTxList(this.tokenAddress.usdtETH); const usdtTx = await getUSDTTxList(this.tokenAddress.usdtETH.address);
const fundList = this.fundList; const fundList = this.fundList;
const newDepositList = getNewDepositTx(usdtTx, fundList); const newDepositList = getNewDepositTx(usdtTx, fundList);
if (newDepositList && newDepositList.length > 0) if (newDepositList && newDepositList.length > 0)