Rename template instanciation function
This commit is contained in:
@@ -393,7 +393,7 @@ var CartodbWindshaft = function(serverOptions) {
|
||||
});
|
||||
|
||||
// Instantiate a template
|
||||
function instanciate(req, res, template_params, callback) {
|
||||
function instanciateTemplate(req, res, template_params, callback) {
|
||||
ws.doCORS(res);
|
||||
var that = this;
|
||||
var response = {};
|
||||
@@ -505,7 +505,7 @@ var CartodbWindshaft = function(serverOptions) {
|
||||
if ( ! req.headers['content-type'] || req.headers['content-type'].split(';')[0] != 'application/json') {
|
||||
throw new Error('template POST data must be of type application/json, it is instead ');
|
||||
}
|
||||
instanciate(req, res, req.body, this);
|
||||
instanciateTemplate(req, res, req.body, this);
|
||||
}, function(err, response) {
|
||||
finish_instanciation(err, response, res);
|
||||
}
|
||||
@@ -530,7 +530,7 @@ var CartodbWindshaft = function(serverOptions) {
|
||||
throw new Error('badformed config parameter, should be a valid JSON');
|
||||
}
|
||||
}
|
||||
instanciate(req, res, config, this);
|
||||
instanciateTemplate(req, res, config, this);
|
||||
}, function(err, response) {
|
||||
finish_instanciation(err, response, res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user