明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
letian_backend
Commits
c2df2c74
Commit
c2df2c74
authored
Oct 22, 2024
by
zengfanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dbe25ee6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
collectIPSController.js
controller/collectIPSController.js
+1
-1
collectIPSModule.js
module/collectIPSModule.js
+0
-1
No files found.
controller/collectIPSController.js
View file @
c2df2c74
...
...
@@ -14,7 +14,7 @@ const collectIPSModule = require('../module/collectIPSModule');
*/
async
function
list
(
req
,
res
,
next
)
{
try
{
let
search
=
{
del
:
0
};
let
search
=
{
del
:
0
,
typeCount
:
{
$gte
:
1
},
newCount
:
{
$gte
:
1
}
};
if
(
req
.
body
.
name
)
{
search
.
name
=
{
$regex
:
req
.
body
.
name
}
}
...
...
module/collectIPSModule.js
View file @
c2df2c74
...
...
@@ -23,7 +23,6 @@ async function findList(search, options) {
// 总量
async
function
count
(
search
)
{
console
.
log
(
DB
.
CollectIPS
)
return
DB
.
CollectIPS
.
countDocuments
(
search
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment