diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index e6ef0330..5620a9ae 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -740,18 +740,9 @@ module.exports = function(redisPool) { if(err) throw err; that.setDBConn(user, req.params, this); }, - function getGeometryType(err){ - if (req.profiler) req.profiler.done('setDBConn'); - if (err) throw err; - if ( ! req.params.table ) return null; - cartoData.getTableGeometryType(req.params.dbname, req.params.table, this); - }, - function finishSetup(err, data){ + function finishSetup(err) { if ( err ) { callback(err, req); return; } - if (!_.isNull(data)) - _.extend(req.params, {geom_type: data}); - // Add default database connection parameters // if none given _.defaults(req.params, {