Skip to content

Commit 3ba198b

Browse files
committed
Fix type error by adding depth to the run list presenter
1 parent e1b639d commit 3ba198b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/webapp/app/presenters/v3/ApiRunListPresenter.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ export class ApiRunListPresenter extends BasePresenter {
253253
costInCents: run.costInCents,
254254
baseCostInCents: run.baseCostInCents,
255255
durationMs: run.usageDurationMs,
256+
depth: run.depth,
256257
...ApiRetrieveRunPresenter.apiBooleanHelpersFromRunStatus(
257258
ApiRetrieveRunPresenter.apiStatusFromRunStatus(run.status)
258259
),

apps/webapp/app/presenters/v3/RunListPresenter.server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export class RunListPresenter extends BasePresenter {
167167
baseCostInCents: number;
168168
usageDurationMs: BigInt;
169169
tags: string[];
170+
depth: number;
170171
}[]
171172
>`
172173
SELECT
@@ -190,6 +191,7 @@ export class RunListPresenter extends BasePresenter {
190191
tr."baseCostInCents" AS "baseCostInCents",
191192
tr."costInCents" AS "costInCents",
192193
tr."usageDurationMs" AS "usageDurationMs",
194+
tr."depth" AS "depth",
193195
array_remove(array_agg(tag.name), NULL) AS "tags"
194196
FROM
195197
${sqlDatabaseSchema}."TaskRun" tr
@@ -333,6 +335,7 @@ WHERE
333335
baseCostInCents: run.baseCostInCents,
334336
usageDurationMs: Number(run.usageDurationMs),
335337
tags: run.tags.sort((a, b) => a.localeCompare(b)),
338+
depth: run.depth,
336339
};
337340
}),
338341
pagination: {

0 commit comments

Comments
 (0)