Windshaft-cartodb/lib/backends/layer-stats/empty-layer-stats.js

19 lines
378 B
JavaScript
Raw Normal View History

'use strict';
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) {
2017-05-18 17:51:12 +08:00
setImmediate(function() {
callback(null, {});
});
};
module.exports = EmptyLayerStats;