Fix:phase execution

phase (not only its tasks) must be executed after the tasks of previous phases
This commit is contained in:
Javier Goizueta
2018-05-08 12:56:06 +02:00
parent c647f852d6
commit 636cd8cd50
+1 -1
View File
@@ -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); } });
}
}