feat: Query soft-deleted executions and execution steps
This commit is contained in:
@@ -14,11 +14,13 @@ const getExecutionSteps = async (
|
|||||||
) => {
|
) => {
|
||||||
const execution = await context.currentUser
|
const execution = await context.currentUser
|
||||||
.$relatedQuery('executions')
|
.$relatedQuery('executions')
|
||||||
|
.withSoftDeleted()
|
||||||
.findById(params.executionId)
|
.findById(params.executionId)
|
||||||
.throwIfNotFound();
|
.throwIfNotFound();
|
||||||
|
|
||||||
const executionSteps = execution
|
const executionSteps = execution
|
||||||
.$relatedQuery('executionSteps')
|
.$relatedQuery('executionSteps')
|
||||||
|
.withSoftDeleted()
|
||||||
.withGraphFetched('step')
|
.withGraphFetched('step')
|
||||||
.orderBy('created_at', 'asc');
|
.orderBy('created_at', 'asc');
|
||||||
|
|
||||||
|
@@ -13,10 +13,11 @@ const getExecutions = async (
|
|||||||
) => {
|
) => {
|
||||||
const executions = context.currentUser
|
const executions = context.currentUser
|
||||||
.$relatedQuery('executions')
|
.$relatedQuery('executions')
|
||||||
|
.withSoftDeleted()
|
||||||
.withGraphFetched({
|
.withGraphFetched({
|
||||||
flow: {
|
flow: {
|
||||||
steps: true
|
steps: true,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
.orderBy('created_at', 'desc');
|
.orderBy('created_at', 'desc');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user