refactor: Use relations to expose dataOut field of execution steps

This commit is contained in:
Faruk AYDIN
2022-03-03 19:07:25 +01:00
committed by Ali BARIN
parent 3391578655
commit 0c183eeadd
2 changed files with 5 additions and 1 deletions
@@ -18,7 +18,6 @@ const getStepWithTestExecutionsResolver = async (
const previousStepsWithCurrentStep = await req.currentUser
.$relatedQuery('steps')
.withGraphJoined('executionSteps')
.select('steps.*', 'executionSteps.data_out as output')
.where('flow_id', '=', step.flowId)
.andWhere('position', '<', step.position)
.distinctOn('executionSteps.step_id')