Skip to content

Commit

Permalink
lib/databases/elasticsearch.js: deep clone options object before clie…
Browse files Browse the repository at this point in the history
…nt creation

see elastic#33 (comment)

Signed-off-by: Chris Dituri <csdituri@gmail.com>
  • Loading branch information
cdituri committed Jun 14, 2017
1 parent 921c824 commit 02f19c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/databases/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var ElasticSearchSessionStore = function (options) {
options.host = 'localhost:9200';
}

this.options = options;
this.options = _.clone(options);

this.index = this.options.index;
this.typeName = this.options.typeName;
Expand Down

0 comments on commit 02f19c9

Please sign in to comment.