Add query params when instantiating template

This commit is contained in:
Daniel García Aubert 2018-03-28 15:53:34 +02:00
parent 0315b32d2b
commit 22fdc3d1bf

View File

@ -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,