Skip to content

Commit 4ed6bf3

Browse files
committed
Clear the useless code.
1 parent 95f7607 commit 4ed6bf3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/mongoosastic.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ module.exports = function Mongoosastic(schema, options) {
134134
}
135135
var serialModel = serialize(this, mapping);
136136
// Remove the markdown syntax
137-
/*if(this.es_description) {
138-
serialModel.description = this.es_description;
139-
}
140-
if(this.es_comments) {
141-
serialModel.comments = this.es_comments;
142-
}*/
143137
_.forIn(schema.virtuals, function(value, key) {
144138
var regex = /^es_(.{0,})/;
145139
var result = regex.exec(key);

0 commit comments

Comments
 (0)