Fix async throws in getGeometryType, getInfoWindow and getMapMetadata
This commit is contained in:
parent
0b56dd09d9
commit
cb57dfb27d
@ -126,7 +126,6 @@ module.exports = function() {
|
||||
that.retrieve(that.table_metadata_db, redisKey, 'privacy', this);
|
||||
},
|
||||
function(err, data){
|
||||
//if (err) throw err;
|
||||
callback(err, data);
|
||||
}
|
||||
);
|
||||
@ -152,7 +151,6 @@ module.exports = function() {
|
||||
that.retrieve(that.table_metadata_db, redisKey, 'the_geom_type', this);
|
||||
},
|
||||
function(err, data){
|
||||
if (err) throw err;
|
||||
callback(err, data);
|
||||
}
|
||||
);
|
||||
@ -172,7 +170,6 @@ module.exports = function() {
|
||||
that.retrieve(that.table_metadata_db, redisKey, 'infowindow', this);
|
||||
},
|
||||
function(err, data){
|
||||
if (err) throw err;
|
||||
callback(err, data);
|
||||
}
|
||||
);
|
||||
@ -193,7 +190,6 @@ module.exports = function() {
|
||||
that.retrieve(that.table_metadata_db, redisKey, 'map_metadata', this);
|
||||
},
|
||||
function(err, data){
|
||||
if (err) throw err;
|
||||
callback(err, data);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user