16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
import { renderObject } from '../../../../helpers/renderer.js';
|
|
|
|
export default async (request, response) => {
|
|
const execution = await request.currentUser.authorizedExecutions
|
|
.withGraphFetched({
|
|
flow: {
|
|
steps: true,
|
|
},
|
|
})
|
|
.withSoftDeleted()
|
|
.findById(request.params.executionId)
|
|
.throwIfNotFound();
|
|
|
|
renderObject(response, execution);
|
|
};
|