From f6c205baf9d30e81c2e75686376901283e3137eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 16 Sep 2019 13:08:10 +0200 Subject: [PATCH] Typo --- lib/cartodb/stats/reporter/named-map-provider.js | 4 ++-- test/acceptance/named-map-cache-regressions.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cartodb/stats/reporter/named-map-provider.js b/lib/cartodb/stats/reporter/named-map-provider.js index c115b716..875827cd 100644 --- a/lib/cartodb/stats/reporter/named-map-provider.js +++ b/lib/cartodb/stats/reporter/named-map-provider.js @@ -17,12 +17,12 @@ module.exports = class NamedMapProviderReporter { stats.gauge(statKeyTemplate({ metric: 'named-map.count' }), cache.length); const providers = cache.dump(); - const namedMapIntantiations = providers.reduce((acc, { v: providers }) => { + const namedMapInstantiations = providers.reduce((acc, { v: providers }) => { acc += Object.keys(providers).length; return acc; }, 0); - stats.gauge(statKeyTemplate({ metric: 'named-map.intantiation.count' }), namedMapIntantiations); + stats.gauge(statKeyTemplate({ metric: 'named-map.intantiation.count' }), namedMapInstantiations); }, this.intervalInMilliseconds); } diff --git a/test/acceptance/named-map-cache-regressions.js b/test/acceptance/named-map-cache-regressions.js index 23cd7b74..8521ca8a 100644 --- a/test/acceptance/named-map-cache-regressions.js +++ b/test/acceptance/named-map-cache-regressions.js @@ -123,7 +123,7 @@ describe('named map cache regressions', function () { const newQuery = 'select * from populated_places_simple_reduced limit 100'; templateUpdate.layergroup.analyses[0].params.query = newQuery; - const upateTemplateRequest = { + const updateTemplateRequest = { url: `http://${address}/api/v1/map/named/${templateId}?api_key=${apiKey}`, method: 'PUT', headers: { @@ -134,7 +134,7 @@ describe('named map cache regressions', function () { json: true }; - request(upateTemplateRequest, (err, res) => { + request(updateTemplateRequest, (err, res) => { if (err) { return done(err); }