diff --git a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js index 3472a4be..aada7b0f 100644 --- a/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/vector-mapconfig-adapter.js @@ -6,7 +6,6 @@ const dateWrapper = require('../../../utils/date-wrapper'); * doesnt support dates as primitive type. * * - This middleware is ONLY activated when the `dates_as_numbers` option is enabled for some layer in the mapConfig. - * - TODO: We currently support one single layer and we should define what to do with multiple layers. */ class VectorMapConfigAdapter { constructor(pgConnection) { @@ -18,10 +17,6 @@ class VectorMapConfigAdapter { return callback(null, requestMapConfig); } - if (requestMapConfig.layers.length > 1) { - return callback(new Error('Get column types for multiple vector layers is not implemented')); - } - this._wrapDates(requestMapConfig, user) .then(updatedRequestMapConfig => callback(null, updatedRequestMapConfig)) .catch(callback);