Skip getting geometry type if request has no table
This commit is contained in:
parent
c1b2d16119
commit
def474c611
@ -667,6 +667,7 @@ module.exports = function(){
|
|||||||
function getGeometryType(err){
|
function getGeometryType(err){
|
||||||
if (req.profiler) req.profiler.done('setDBConn');
|
if (req.profiler) req.profiler.done('setDBConn');
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
if ( ! req.params.table ) return null;
|
||||||
cartoData.getTableGeometryType(req.params.dbname, req.params.table, this);
|
cartoData.getTableGeometryType(req.params.dbname, req.params.table, this);
|
||||||
},
|
},
|
||||||
function finishSetup(err, data){
|
function finishSetup(err, data){
|
||||||
|
Loading…
Reference in New Issue
Block a user