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;
AnalysisStatusBackend.prototype.getNodeStatus = function (nodeId, params, callback) {
AnalysisStatusBackend.prototype.getNodeStatus = function (params, callback) {
var nodeId = params.nodeId;
var statusQuery = [
'SELECT node_id, status, updated_at, last_error_message as error_message',
'FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\''

View File

@ -22,7 +22,9 @@ function DataviewBackend(analysisBackend) {
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(
function getMapConfig() {
mapConfigProvider.getMapConfig(this);

View File

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