fix(core): Optimize SharedWorkflow queries (#6297)

* optimize SharedWorkflow queries

* fix int to string ids
This commit is contained in:
Michael Auerswald
2023-05-23 09:40:38 +02:00
committed by GitHub
parent 4d9c8b07a9
commit ed7f3b845f
4 changed files with 20 additions and 24 deletions

View File

@@ -764,8 +764,7 @@ export class Server extends AbstractServer {
this.app.get(
`/${this.restEndpoint}/active`,
ResponseHelper.send(async (req: WorkflowRequest.GetAllActive) => {
const activeWorkflows = await this.activeWorkflowRunner.getActiveWorkflows(req.user);
return activeWorkflows.map(({ id }) => id);
return this.activeWorkflowRunner.getActiveWorkflows(req.user);
}),
);