Commit 862e3e49 authored by 陈家荣's avatar 陈家荣

update

parent a7a13c85
......@@ -48,6 +48,7 @@ router.get('/threadManagement/threads/list', function(req, res, next) {
if(req.query.sort){//指定排序字段
sortBy = {};
sortBy[req.query.sort] = asc;
sortBy['_id'] = -1;
}
var conditions = {
ent_code: req.session.user.ent_code,
......@@ -907,6 +908,7 @@ router.get('/threadManagement/threads/:tid/comment/search', function(req, res, n
if(req.query.sort){//指定排序字段
sort = {};
sort[req.query.sort] = asc;
sortBy['_id'] = -1;
}
var conditions = {
......
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