diff --git a/lib/client.js b/lib/client.js index 77d1699..3423570 100644 --- a/lib/client.js +++ b/lib/client.js @@ -656,21 +656,20 @@ Client.prototype = { @param {Object} callback.res ElasticSearch response data. @static **/ - putRiver: wrapIndexMethod('putRiver'), + putRiver: wrapStaticIndexMethod('putRiver'), /** Gets river config from the cluster. [ElasticSearch docs](http://www.elasticsearch.org/guide/reference/river/) @method getRiver - @param {Client} client Client instance. @param {String} name A name for this river. @param {Function} [callback] Callback function. @param {Error|null} callback.err Error, or `null` on success. @param {Object} callback.res ElasticSearch response data. @static **/ - getRiver: wrapIndexMethod('getRiver'), + getRiver: wrapStaticIndexMethod('getRiver'), /** Deletes a river config from the cluster.