feat: Return scopes on executions (no-changelog) (#10310)

This commit is contained in:
Val
2024-08-07 10:19:09 +01:00
committed by GitHub
parent 6d8323fade
commit fa17391dbd
10 changed files with 94 additions and 4 deletions

View File

@@ -61,4 +61,12 @@ export class ProjectRelationRepository extends Repository<ProjectRelation> {
return [...new Set(rows.map((r) => r.userId))];
}
async findAllByUser(userId: string) {
return await this.find({
where: {
userId,
},
});
}
}

View File

@@ -200,4 +200,13 @@ export class SharedWorkflowRepository extends Repository<SharedWorkflow> {
})
)?.project;
}
async getRelationsByWorkflowIdsAndProjectIds(workflowIds: string[], projectIds: string[]) {
return await this.find({
where: {
workflowId: In(workflowIds),
projectId: In(projectIds),
},
});
}
}