Only select the data we need to show runs list

This commit is contained in:
Matt Aitken
2022-12-22 16:53:04 +00:00
parent f4a1aea0c3
commit 98f9eb4653
@@ -37,6 +37,13 @@ export class WorkflowRunListPresenter {
});
const runs = await this.#prismaClient.workflowRun.findMany({
select: {
id: true,
startedAt: true,
finishedAt: true,
status: true,
isTest: true,
},
where: {
workflow: {
slug: workflowSlug,