mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Added count clearning for status changes
This commit is contained in:
@@ -273,7 +273,7 @@ module.exports = class CommentsService {
|
||||
return Promise.reject(new Error(`status ${status} is not supported`));
|
||||
}
|
||||
|
||||
return CommentModel.update({id}, {
|
||||
return CommentModel.findOneAndUpdate({id}, {
|
||||
$set: {status}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user