From 09527b68087f4a4742331671ac1f9d8cbee88b97 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 5 Feb 2015 17:08:20 +0100 Subject: [PATCH 1/2] Remove no longer needed method from query_tables_api --- lib/cartodb/api/query_tables_api.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lib/cartodb/api/query_tables_api.js b/lib/cartodb/api/query_tables_api.js index c6eb2e48..bdcf488e 100644 --- a/lib/cartodb/api/query_tables_api.js +++ b/lib/cartodb/api/query_tables_api.js @@ -13,27 +13,6 @@ var affectedTableRegexCache = { module.exports = QueryTablesApi; -QueryTablesApi.prototype.getLastUpdatedTime = function (username, api_key, tableNames, callback) { - var sql = 'SELECT EXTRACT(EPOCH FROM max(updated_at)) as max FROM CDB_TableMetadata m WHERE m.tabname = any (ARRAY['+ - tableNames.map(function(t) { return "'" + t + "'::regclass"; }).join(',') + - '])'; - - // call sql api - sqlApi.query(username, api_key, sql, function(err, rows){ - if (err){ - var msg = err.message ? err.message : err; - callback(new Error('could not find last updated timestamp: ' + msg)); - return; - } - // when the table has not updated_at means it hasn't been changed so a default last_updated is set - var last_updated = 0; - if(rows.length !== 0) { - last_updated = rows[0].max || 0; - } - - callback(null, last_updated*1000); - }); -}; QueryTablesApi.prototype.getAffectedTablesInQuery = function (username, options, sql, callback) { From d38fc16b57510636ed19f50f99f9b5b4a1b9ad19 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 9 Feb 2015 14:49:01 +0100 Subject: [PATCH 2/2] Don't test against node 0.8 --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2c24498f..ef58e4f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,6 @@ env: language: node_js node_js: - - "0.8" - "0.10" notifications: