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

19 lines
380 B
JavaScript
Raw Normal View History

'use strict';
2019-10-22 01:07:24 +08:00
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) {
2019-10-22 01:07:24 +08:00
setImmediate(function () {
callback(null, {});
});
};
module.exports = EmptyLayerStats;