fix: 刷新接口修复

This commit is contained in:
chaosBreaking
2019-09-08 23:01:24 +08:00
parent ceec223c1d
commit 533aea4331

View File

@@ -219,7 +219,7 @@ module.exports = {
code: 0, code: 0,
data: fund.fundList data: fund.fundList
}); });
const { hasNew, list } = fund.hasNewDeposit(); const { hasNew, list } = await fund.hasNewDeposit();
if (!hasNew) { if (!hasNew) {
const [ start, end ] = getDate(1); const [ start, end ] = getDate(1);
const actions = await Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: end } }); const actions = await Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: end } });