Merge pull request #2298 from automatisch/distinct-app-flows

fix(apps/get-flows): respond with distinct flows
This commit is contained in:
Ali BARIN
2025-01-21 14:41:46 +01:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export default async (request, response) => {
const flowsQuery = request.currentUser.authorizedFlows
.clone()
.distinct('flows.*')
.joinRelated({
steps: true,
})

View File

@@ -4,6 +4,7 @@ import paginateRest from '../../../../helpers/pagination-rest.js';
export default async (request, response) => {
const flowsQuery = request.currentUser.authorizedFlows
.clone()
.distinct('flows.*')
.joinRelated({
steps: true,
})