明树Git Lab

Commit c2df2c74 authored by zengfanpei's avatar zengfanpei

update

parent dbe25ee6
...@@ -14,7 +14,7 @@ const collectIPSModule = require('../module/collectIPSModule'); ...@@ -14,7 +14,7 @@ const collectIPSModule = require('../module/collectIPSModule');
*/ */
async function list(req, res, next) { async function list(req, res, next) {
try { try {
let search = {del: 0}; let search = {del: 0, typeCount: {$gte: 1}, newCount: {$gte: 1}};
if(req.body.name) { if(req.body.name) {
search.name = {$regex: req.body.name} search.name = {$regex: req.body.name}
} }
......
...@@ -23,7 +23,6 @@ async function findList(search, options) { ...@@ -23,7 +23,6 @@ async function findList(search, options) {
// 总量 // 总量
async function count(search) { async function count(search) {
console.log(DB.CollectIPS)
return DB.CollectIPS.countDocuments(search); return DB.CollectIPS.countDocuments(search);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment