WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4ed6bf3

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

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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)