Remove control flag

This commit is contained in:
IagoLast 2018-06-05 09:35:01 +02:00
parent 9ee6d7fc91
commit a883514c8a

View File

@ -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);