diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index edc364d..0359bc3 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -219,7 +219,7 @@ module.exports = { code: 0, data: fund.fundList }); - const { hasNew, list } = fund.hasNewDeposit(); + const { hasNew, list } = await fund.hasNewDeposit(); if (!hasNew) { const [ start, end ] = getDate(1); const actions = await Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: end } });