diff --git a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js index a707b5d3..bedea8b8 100644 --- a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js @@ -46,7 +46,7 @@ class VectorMapConfigAdapter { if (err) { return reject(err); } - const query = queryUtils.getQueryLimited(originalQuery, 0); + const query = queryUtils.getQueryLimited(queryUtils.substituteDummyTokens(originalQuery), 0); queryUtils.queryPromise(connection, query) .then(resolve) .catch(reject);