rename create client, fix client instance test
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import elasticsearch from 'elasticsearch';
|
||||
|
||||
export default function createClient(options) {
|
||||
let client;
|
||||
|
||||
if (options instanceof elasticsearch.Client) {
|
||||
client = options;
|
||||
} else {
|
||||
client = new elasticsearch.Client(options);
|
||||
}
|
||||
|
||||
return client;
|
||||
};
|
||||
Reference in New Issue
Block a user