This commit is contained in:
Daniel García Aubert 2017-07-18 11:56:54 +02:00
parent 40dc94e010
commit 669707b26c
2 changed files with 5 additions and 2 deletions

View File

@ -81,10 +81,13 @@ UserLimitsApi.prototype.getTimeoutRenderLimit = function (username, apiKey, call
});
},
function getUserTimeoutRenderLimits(err, authorized) {
var next = this;
if (err) {
return next(err);
}
self.metadataBackend.getUserTimeoutRenderLimits(username, authorized, this);
self.metadataBackend.getUserTimeoutRenderLimits(username, authorized, next);
},
function setTilerRenderLimit(err, timeoutRenderLimit) {
if (err) {

View File

@ -69,7 +69,7 @@ describe('user timeout limits', function () {
var mapConfig = createMapConfig(TestClient.CARTOCSS.POINTS);
var testClient = new TestClient(mapConfig, 1234);
testClient.getTile(4, 4, 4, {}, function (err, /* res, tile */) {
testClient.getTile(4, 4, 4, {}, function (err /*, res, tile */) {
assert.ok(err, err);
// TODO: check timeout tile
testClient.drain(done);