Commit 528f8843 authored by 陈家荣's avatar 陈家荣

update

parent 76237d03
......@@ -297,7 +297,6 @@ exports.saveCommentLevel2BySearch=function(tid,l1id,l2id){
exports.updateThreadStatus=function(tid,status){
var condition={
type:THREAD_TYPE,
thread:new mongoose.Types.ObjectId(tid),
threadStatus:{$ne:status}
}
......@@ -321,7 +320,6 @@ exports.updateThreadStatus=function(tid,status){
exports.updateCommentLevel1Status=function(cid,status){
var condition={
type:COMMENTLEVEL1_TYPE,
commentLevel1:new mongoose.Types.ObjectId(cid),
commentLevel1Status:{$ne:status}
}
......@@ -345,7 +343,6 @@ exports.updateCommentLevel1Status=function(cid,status){
exports.updateCommentLevel2Status=function(cid,status){
var condition={
type:COMMENTLEVEL2_TYPE,
commentLevel2:new mongoose.Types.ObjectId(cid),
commentLevel2Status:{$ne:status}
}
......
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