From 636cd8cd509124e38a97f350cb51f7ecd49770bc Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Tue, 8 May 2018 12:56:06 +0200 Subject: [PATCH] Fix:phase execution phase (not only its tasks) must be executed after the tasks of previous phases --- lib/cartodb/utils/phased-execution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/utils/phased-execution.js b/lib/cartodb/utils/phased-execution.js index ec1de9b1..68fc7933 100644 --- a/lib/cartodb/utils/phased-execution.js +++ b/lib/cartodb/utils/phased-execution.js @@ -83,7 +83,7 @@ module.exports = class PhasedExecution { if (phase) { phase(this); return Promise.all(this.tasks) - .then(this.run()) + .then(() => this.run()) .then(() => { if (callback) { callback(this.results); } }); } }