Windshaft-cartodb/lib/cartodb/backends/layer-stats/empty-layer-stats.js
Mario de Frutos ed56094be2 PR changes
2017-05-18 11:51:12 +02:00

17 lines
363 B
JavaScript

function EmptyLayerStats(types) {
this._types = types || {};
}
EmptyLayerStats.prototype.is = function (type) {
return this._types[type] ? this._types[type] : false;
};
EmptyLayerStats.prototype.getStats =
function (layer, dbConnection, callback) {
setImmediate(function() {
callback(null, {});
});
};
module.exports = EmptyLayerStats;