undo changing services params

This commit is contained in:
Simon Martín 2017-10-09 16:29:35 +02:00
parent e3405ea2fc
commit 484e0fda2f
3 changed files with 7 additions and 4 deletions

View File

@ -6,7 +6,9 @@ function AnalysisStatusBackend() {
module.exports = AnalysisStatusBackend; module.exports = AnalysisStatusBackend;
AnalysisStatusBackend.prototype.getNodeStatus = function (nodeId, params, callback) { AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = [ var statusQuery = [
'SELECT node_id, status, updated_at, last_error_message as error_message', 'SELECT node_id, status, updated_at, last_error_message as error_message',
'FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\'' 'FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\''

View File

@ -22,7 +22,9 @@ function DataviewBackend(analysisBackend) {
module.exports = DataviewBackend; module.exports = DataviewBackend;
DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, dataviewName, params, callback) { DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, params, callback) {
var dataviewName = params.dataviewName;
step( step(
function getMapConfig() { function getMapConfig() {
mapConfigProvider.getMapConfig(this); mapConfigProvider.getMapConfig(this);

View File

@ -169,7 +169,7 @@ LayergroupController.prototype.analysisNodeStatus = function(req, res, next) {
step( step(
function retrieveNodeStatus() { function retrieveNodeStatus() {
self.analysisStatusBackend.getNodeStatus(req.params.nodeId, res.locals, this); self.analysisStatusBackend.getNodeStatus(res.locals, this);
}, },
function finish(err, nodeStatus, stats) { function finish(err, nodeStatus, stats) {
req.profiler.add(stats || {}); req.profiler.add(stats || {});
@ -198,7 +198,6 @@ LayergroupController.prototype.dataview = function(req, res, next) {
self.dataviewBackend.getDataview( self.dataviewBackend.getDataview(
mapConfigProvider, mapConfigProvider,
res.locals.user, res.locals.user,
req.params.dataviewName,
res.locals, res.locals,
this this
); );