Use new version of getUserTimeoutRenderLimits

This commit is contained in:
Daniel García Aubert 2017-08-01 19:13:55 +02:00
parent 0594407b38
commit ab879e2634
2 changed files with 11 additions and 8 deletions

View File

@ -87,13 +87,16 @@ UserLimitsApi.prototype.getTimeoutRenderLimit = function (username, apiKey, call
return next(err);
}
self.metadataBackend.getUserTimeoutRenderLimits(username, authorized, next);
},
function setTilerRenderLimit(err, timeoutRenderLimit) {
self.metadataBackend.getUserTimeoutRenderLimits(username, function (err, timeoutRenderLimit) {
if (err) {
return callback(err);
}
return callback(null, timeoutRenderLimit);
return next(err)
}
next(null, {
render: authorized ? timeoutRenderLimit.render : timeoutRenderLimit.renderPublic
});
});
},
callback
);
};

View File

@ -260,7 +260,7 @@ cartodb-query-tables@0.2.0:
cartodb-redis@cartodb/node-cartodb-redis#timeout-limits:
version "0.13.3"
resolved "https://codeload.github.com/cartodb/node-cartodb-redis/tar.gz/0c0e5c410243bd4a16e9d94b52821e9d6533eb16"
resolved "https://codeload.github.com/cartodb/node-cartodb-redis/tar.gz/530ae2736a184a3b9c9e978efa7dcb4faae7abee"
dependencies:
dot "~1.0.2"
redis-mpool "~0.4.1"