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
9b7830a2
Commit
9b7830a2
authored
Mar 16, 2016
by
strong
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
6404a060
' into SANDBOX
parents
e6ad37f7
6404a060
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
30 deletions
+23
-30
forumThreadService.js
app/service/forumThreadService.js
+23
-30
No files found.
app/service/forumThreadService.js
View file @
9b7830a2
...
@@ -770,11 +770,6 @@ function getSubThreads(doc, sort, callback) {
...
@@ -770,11 +770,6 @@ function getSubThreads(doc, sort, callback) {
pid
:
doc
.
_id
,
pid
:
doc
.
_id
,
status
:
1
status
:
1
};
};
countAllByFid
(
conditions
,
function
(
err
,
count
)
{
if
(
err
)
{
console
.
error
(
err
);
callback
(
err
,
null
);
}
else
{
var
sortBy
=
'-top -quality -created'
;
var
sortBy
=
'-top -quality -created'
;
if
(
sort
)
{
if
(
sort
)
{
sortBy
=
sort
;
sortBy
=
sort
;
...
@@ -797,7 +792,7 @@ function getSubThreads(doc, sort, callback) {
...
@@ -797,7 +792,7 @@ function getSubThreads(doc, sort, callback) {
}
}
});
});
var
obj
=
{};
var
obj
=
{};
obj
.
total
=
count
;
obj
.
total
=
list
.
length
;
obj
.
items
=
list
;
obj
.
items
=
list
;
var
newDoc
=
doc
.
toObject
();
var
newDoc
=
doc
.
toObject
();
...
@@ -806,8 +801,6 @@ function getSubThreads(doc, sort, callback) {
...
@@ -806,8 +801,6 @@ function getSubThreads(doc, sort, callback) {
callback
(
null
,
newDoc
);
callback
(
null
,
newDoc
);
}
}
});
});
}
});
}
}
function
getAllThreadByFidHelp
(
conditions
,
pageNo
,
pageSize
,
sort
,
callback
)
{
function
getAllThreadByFidHelp
(
conditions
,
pageNo
,
pageSize
,
sort
,
callback
)
{
...
...
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