Fix use of maxUserTemplate configuration variable

This commit is contained in:
Sandro Santilli 2014-02-13 15:01:58 +01:00
parent e4cd37647e
commit 4a6af108b4

View File

@ -30,10 +30,10 @@ var CartodbWindshaft = function(serverOptions) {
}
serverOptions.signedMaps = new SignedMaps(redisPool);
var templateMapsOps = {
var templateMapsOpts = {
max_user_templates: global.environment.maxUserTemplates
}
var templateMaps = new TemplateMaps(redisPool, serverOptions.signedMaps);
var templateMaps = new TemplateMaps(redisPool, serverOptions.signedMaps, templateMapsOpts);
// boot
var ws = new Windshaft.Server(serverOptions);