Commit 8eb70843 authored by 陈家荣's avatar 陈家荣

gggg

parent 742dca0d
......@@ -674,12 +674,17 @@ exports.updateThreadCommentCountInc = function(threadId, callback) {
};
//更新文章评论数
exports.updateThreadCommentCount = function(threadId, comment_count, callback) {
exports.updateThreadCommentCount = function(threadId, callback) {
ForumThread.update({
_id: threadId
}, {
'comment_count': comment_count
}, null,
$inc: {
comment_count: -1
}
}, {
w: 1,
safe: true
},
function(err, result) {
if (err) {
console.error(err);
......
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