Files
automatisch/packages/backend/src/controllers/api/v1/executions/get-execution.js
2024-03-03 18:53:14 +01:00

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);
};