From 8c38ecf808848105e525eb28f9da520a02447c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 30 Apr 2020 13:24:41 +0200 Subject: [PATCH] Missing substring --- lib/api/middlewares/metrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/middlewares/metrics.js b/lib/api/middlewares/metrics.js index b51ddba8..084c353f 100644 --- a/lib/api/middlewares/metrics.js +++ b/lib/api/middlewares/metrics.js @@ -104,7 +104,7 @@ function getTemplateHash ({ res }) { let templateHash; try { - templateHash = res.locals.mapConfigProvider.getTemplateHash(); + templateHash = res.locals.mapConfigProvider.getTemplateHash().substring(0, 8); } catch (e) {} return templateHash;