fix(scenarios): order runs by createdAt desc, scenarios list by updatedAt desc
This commit is contained in:
@@ -218,7 +218,7 @@ export class ScenarioService {
|
||||
const [data, total] = await this.runRepo.findAndCount({
|
||||
where,
|
||||
relations: ["stepRuns"],
|
||||
order: { id: "DESC", stepRuns: { order: "ASC" } },
|
||||
order: { createdAt: "DESC" },
|
||||
skip: (page - 1) * limit,
|
||||
take: limit,
|
||||
});
|
||||
@@ -235,7 +235,7 @@ export class ScenarioService {
|
||||
const [data, total] = await this.runRepo.findAndCount({
|
||||
where,
|
||||
relations: ["stepRuns", "scenario"],
|
||||
order: { id: "DESC", stepRuns: { order: "ASC" } },
|
||||
order: { createdAt: "DESC" },
|
||||
skip: (page - 1) * limit,
|
||||
take: limit,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user