Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
d4fa0b3f
Commit
d4fa0b3f
authored
Sep 24, 2015
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
bcc62a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
forumAboutMEService.js
app/service/forumAboutMEService.js
+0
-6
No files found.
app/service/forumAboutMEService.js
View file @
d4fa0b3f
...
@@ -165,9 +165,6 @@ exports.FetchThreadToAboutMe=function(){
...
@@ -165,9 +165,6 @@ exports.FetchThreadToAboutMe=function(){
var
condition
=
{};
var
condition
=
{};
ForumThread
.
find
(
condition
).
count
(
function
(
err
,
count
){
ForumThread
.
find
(
condition
).
count
(
function
(
err
,
count
){
if
(
count
){
if
(
count
){
if
(
count
>
5000
){
count
=
5000
;
}
_
.
forEach
(
_
.
range
((
count
/
pageSize
)
+
1
),
function
(
o
,
pageNO
){
_
.
forEach
(
_
.
range
((
count
/
pageSize
)
+
1
),
function
(
o
,
pageNO
){
tasks
.
push
(
function
(
cb
){
tasks
.
push
(
function
(
cb
){
FetchThreadToAboutMeByPage
(
pageNO
,
pageSize
,
count
,
condition
,
cb
);
FetchThreadToAboutMeByPage
(
pageNO
,
pageSize
,
count
,
condition
,
cb
);
...
@@ -186,9 +183,6 @@ exports.FetchCommentToAboutMe=function(){
...
@@ -186,9 +183,6 @@ exports.FetchCommentToAboutMe=function(){
var
condition
=
{
level
:
1
};
var
condition
=
{
level
:
1
};
ForumComment
.
find
(
condition
).
count
(
function
(
err
,
count
){
ForumComment
.
find
(
condition
).
count
(
function
(
err
,
count
){
if
(
count
){
if
(
count
){
if
(
count
>
5000
){
count
=
5000
;
}
_
.
forEach
(
_
.
range
((
count
/
pageSize
)
+
1
),
function
(
o
,
pageNO
){
_
.
forEach
(
_
.
range
((
count
/
pageSize
)
+
1
),
function
(
o
,
pageNO
){
tasks
.
push
(
function
(
cb
){
tasks
.
push
(
function
(
cb
){
FetchCommentToAboutMeByPage
(
pageNO
,
pageSize
,
count
,
condition
,
cb
);
FetchCommentToAboutMeByPage
(
pageNO
,
pageSize
,
count
,
condition
,
cb
);
...
...
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