From 22fdc3d1bf12751ef2724b8f038c99255c59477b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 28 Mar 2018 15:53:34 +0200 Subject: [PATCH] Add query params when instantiating template --- lib/cartodb/controllers/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index 11074234..9fd67710 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -242,7 +242,7 @@ function getTemplate ( const { template_id } = req.params; const { auth_token } = req.query; - const params = { dbuser, dbname, dbpassword, dbhost, dbport }; + const params = Object.assign({ dbuser, dbname, dbpassword, dbhost, dbport }, req.query); const mapConfigProvider = new NamedMapMapConfigProvider( templateMaps,