Check style fixes

This commit is contained in:
Raul Ochoa
2014-09-24 11:42:53 +02:00
parent 24cbd192aa
commit 7009eb20f8
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -42,7 +42,7 @@ var CartodbWindshaft = function(serverOptions) {
err = new Error("map state cannot be changed by unauthenticated request!");
}
callback(err, req);
}
};
// This is for Templated maps
//
@@ -53,7 +53,7 @@ var CartodbWindshaft = function(serverOptions) {
serverOptions.signedMaps = new SignedMaps(redisPool);
var templateMapsOpts = {
max_user_templates: global.environment.maxUserTemplates
}
};
var templateMaps = new TemplateMaps(redisPool, serverOptions.signedMaps, templateMapsOpts);
// boot
@@ -65,7 +65,7 @@ var CartodbWindshaft = function(serverOptions) {
var version = wsversion();
version.windshaft_cartodb = require('../../package.json').version;
return version;
}
};
var ws_sendResponse = ws.sendResponse;
// GET routes for which we don't want to request any caching.
@@ -203,7 +203,7 @@ var CartodbWindshaft = function(serverOptions) {
ws.userByReq = function(req) {
return serverOptions.userByReq(req);
}
};
// Add a template
ws.post(template_baseurl, function(req, res) {
@@ -446,7 +446,7 @@ var CartodbWindshaft = function(serverOptions) {
function prepareResponse(err, tpl_ids){
if ( err ) throw err;
// NOTE: might omit "cbduser" if == dbowner ...
var ids = _.map(tpl_ids, function(id) { return cdbuser + '@' + id; })
var ids = _.map(tpl_ids, function(id) { return cdbuser + '@' + id; });
return { template_ids: ids };
},
function finish(err, response){
@@ -501,7 +501,7 @@ var CartodbWindshaft = function(serverOptions) {
if ( tpl_id[0] && tpl_id[0] != cdbuser ) {
var err = new Error('Cannot instanciate map of user "'
+ tpl_id[0] + '" on database of user "'
+ cdbuser + '"')
+ cdbuser + '"');
err.http_status = 403;
callback(err);
return;
@@ -666,6 +666,6 @@ var CartodbWindshaft = function(serverOptions) {
// ---- Template maps interface ends @}
return ws;
}
};
module.exports = CartodbWindshaft;
+1 -1
View File
@@ -3,7 +3,7 @@ var _ = require('underscore')
, Cache = require('./cache_validator')
, QueryTablesApi = require('./api/query_tables_api')
, crypto = require('crypto')
, LZMA = require('lzma').LZMA;
, LZMA = require('lzma').LZMA
;
// This is for backward compatibility with 1.3.3