feat: Implement get flows API endpoint

This commit is contained in:
Faruk AYDIN
2024-03-08 23:10:28 +01:00
parent 209ec27a29
commit ea64708c69
8 changed files with 185 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { renderObject } from '../../../../helpers/renderer.js';
export default async (request, response) => {
const execution = await request.currentUser.authorizedExecutions
.clone()
.withGraphFetched({
flow: {
steps: true,

View File

@@ -3,6 +3,7 @@ import paginateRest from '../../../../helpers/pagination-rest.js';
export default async (request, response) => {
const executionsQuery = request.currentUser.authorizedExecutions
.clone()
.withSoftDeleted()
.orderBy('created_at', 'desc')
.withGraphFetched({