diff --git a/api/app/lib/controllers/overview/conserve.js b/api/app/lib/controllers/overview/conserve.js index 506c8a61..3e98400b 100644 --- a/api/app/lib/controllers/overview/conserve.js +++ b/api/app/lib/controllers/overview/conserve.js @@ -18,7 +18,9 @@ async function statistic (ctx) { } if (projectType) { + findOption.where.projectType = projectType; + } const reportRes = await await models.Report.findAll(findOption)