fix(connections/get-flows): respond with distinct flows

This commit is contained in:
Ali BARIN
2025-01-21 12:45:47 +00:00
parent c8e04f058d
commit 8942460c79

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