Merge pull request #613 from automatisch/feat/show-soft-deleted-executions

feat: Query soft-deleted executions and execution steps
This commit is contained in:
Ömer Faruk Aydın
2022-10-16 15:20:22 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -14,11 +14,13 @@ const getExecutionSteps = async (
) => {
const execution = await context.currentUser
.$relatedQuery('executions')
.withSoftDeleted()
.findById(params.executionId)
.throwIfNotFound();
const executionSteps = execution
.$relatedQuery('executionSteps')
.withSoftDeleted()
.withGraphFetched('step')
.orderBy('created_at', 'asc');

View File

@@ -13,10 +13,11 @@ const getExecutions = async (
) => {
const executions = context.currentUser
.$relatedQuery('executions')
.withSoftDeleted()
.withGraphFetched({
flow: {
steps: true
}
steps: true,
},
})
.orderBy('created_at', 'desc');