Commit 3cddaf18 authored by strong's avatar strong

取消标签置顶时将time设置为null

parent a4ecb108
...@@ -984,6 +984,8 @@ exports.updateTagTop = function(tid,tag_top,callback){ ...@@ -984,6 +984,8 @@ exports.updateTagTop = function(tid,tag_top,callback){
var time = ''; var time = '';
if(tag_top == 1){ if(tag_top == 1){
time = new Date(); time = new Date();
}else{
time = null;
} }
ForumThread.findOneAndUpdate({ ForumThread.findOneAndUpdate({
_id: tid _id: tid
......
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