Commit 530e2846 authored by 杨翌文's avatar 杨翌文

11

parent abbe07a1
......@@ -672,15 +672,15 @@ function populateSubComment(subComments, callback) {
//获取数量
function countAllByFid(conditions, callback) {
callback(null, 21);
// ForumThread.count(conditions, function(err, count) {
// if (err) {
// console.error(err);
// callback(err, null);
// } else {
// callback(null, count);
// }
// });
// callback(null, 21);
ForumThread.count(conditions, function(err, count) {
if (err) {
console.error(err);
callback(err, null);
} else {
callback(null, count);
}
});
}
//导出获取数量函数
......
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