fix: Expose errors within execute flow mutation

This commit is contained in:
Faruk AYDIN
2022-09-27 23:33:58 +03:00
parent 18f315d26c
commit 8e60f3dfd7
2 changed files with 7 additions and 7 deletions

View File

@@ -160,11 +160,7 @@ class Processor {
.orderBy('created_at', 'desc')
.first();
if (lastExecutionStepFromFirstExecution.errorDetails) {
return lastExecutionStepFromFirstExecution.errorDetails;
} else {
return lastExecutionStepFromFirstExecution?.dataOut;
}
return lastExecutionStepFromFirstExecution;
}
async getInitialTriggerData(step: Step) {