From fcf2fd14553d29f83ead2b0e08bcb65eac16f545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Mon, 2 Dec 2019 13:43:19 +0100 Subject: [PATCH] Enforce the usage of cartodb schema --- lib/api/map/analyses-catalog-controller.js | 2 +- lib/backends/analysis-status.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api/map/analyses-catalog-controller.js b/lib/api/map/analyses-catalog-controller.js index 31cd2ee7..e1a27641 100644 --- a/lib/api/map/analyses-catalog-controller.js +++ b/lib/api/map/analyses-catalog-controller.js @@ -123,7 +123,7 @@ function unauthorizedError () { } const catalogQueryTpl = ctx => ` - SELECT analysis_def->>'type' as type, * FROM cdb_analysis_catalog WHERE username = '${ctx._username}' + SELECT analysis_def->>'type' as type, * FROM cartodb.cdb_analysis_catalog WHERE username = '${ctx._username}' `; var tablesQueryTpl = ctx => ` diff --git a/lib/backends/analysis-status.js b/lib/backends/analysis-status.js index 172623c5..9fc32613 100644 --- a/lib/backends/analysis-status.js +++ b/lib/backends/analysis-status.js @@ -10,7 +10,7 @@ module.exports = AnalysisStatusBackend; AnalysisStatusBackend.prototype.getNodeStatus = function (nodeId, dbParams, callback) { var statusQuery = [ 'SELECT node_id, status, updated_at, last_error_message as error_message', - 'FROM cdb_analysis_catalog where node_id = \'' + nodeId + '\'' + 'FROM cartodb.cdb_analysis_catalog where node_id = \'' + nodeId + '\'' ].join(' '); var pg = new PSQL(dbParams);