Remove geom_type retrieval

This commit is contained in:
Raul Ochoa 2015-02-10 16:57:43 +01:00
parent 636591ecbb
commit 59dfd11e5b

View File

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