From 9da4b9d236ab97b8a1c553ab7b38477b5ce339a6 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Thu, 19 Jan 2017 22:35:32 -0500 Subject: [PATCH] standardized on name to match controller/search --- controller/place.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/place.js b/controller/place.js index becae8fc..5d2703cc 100644 --- a/controller/place.js +++ b/controller/place.js @@ -33,7 +33,7 @@ function setup( apiConfig, esclient ){ // setup a new operation const operation = retry.operation(operationOptions); - const query = req.clean.ids.map( function(id) { + const cmd = req.clean.ids.map( function(id) { return { _index: apiConfig.indexName, _type: id.layers, @@ -41,10 +41,10 @@ function setup( apiConfig, esclient ){ }; }); - logger.debug( '[ES req]', query ); + logger.debug( '[ES req]', cmd ); operation.attempt((currentAttempt) => { - mgetService( esclient, query, function( err, docs ) { + mgetService( esclient, cmd, function( err, docs ) { // returns true if the operation should be attempted again // (handles bookkeeping of maxRetries) // only consider for status 408 (request timeout)