Skip to content

Commit

Permalink
Clear the useless code.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghao1891 committed Mar 29, 2016
1 parent 95f7607 commit 4ed6bf3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/mongoosastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,6 @@ module.exports = function Mongoosastic(schema, options) {
}
var serialModel = serialize(this, mapping);
// Remove the markdown syntax
/*if(this.es_description) {
serialModel.description = this.es_description;
}
if(this.es_comments) {
serialModel.comments = this.es_comments;
}*/
_.forIn(schema.virtuals, function(value, key) {
var regex = /^es_(.{0,})/;
var result = regex.exec(key);
Expand Down

0 comments on commit 4ed6bf3

Please sign in to comment.