fix: fix links in scenario service

This commit is contained in:
2026-04-14 21:11:35 +03:00
parent 5ec9fd0bc3
commit a71be39076
6 changed files with 50 additions and 45 deletions
+2 -2
View File
@@ -322,7 +322,7 @@ export class ScenarioService {
await this.findOne(scenarioId); // 404 guard
const run = await this.runRepo.findOne({
where: { id: runId, scenarioId },
relations: ["stepRuns", "stepRuns.scenarioStep"],
relations: ["stepRuns", "stepRuns.scenarioStep", "environment", "session"],
order: { stepRuns: { order: "ASC" } },
});
if (!run)
@@ -387,7 +387,7 @@ export class ScenarioService {
return this.runRepo.findOne({
where: { id: run.id },
relations: ["stepRuns"],
relations: ["stepRuns", "environment", "session"],
order: { stepRuns: { order: "ASC" } },
}) as Promise<ScenarioRunEntity>;
}