Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Use updatedTs instead of createdTs to determine the latest task check run

天舟837596a8713b
diff --git a/frontend/src/components/StatusTransitionForm.vue b/frontend/src/components/StatusTransitionForm.vue
index 8f0b440e80..624d8dbfd1 100644
--- a/frontend/src/components/StatusTransitionForm.vue
+++ b/frontend/src/components/StatusTransitionForm.vue
@@ -265,7 +265,7 @@ export default {
const list: TaskCheckRun[] = [];
for (const run of props.task!.taskCheckRunList) {
const index = list.findIndex((item) => item.type == run.type);
- if (index >= 0 && list[index].createdTs < run.createdTs) {
+ if (index >= 0 && list[index].updatedTs < run.updatedTs) {
list[index] = run;
} else {
list.push(run);
diff --git a/frontend/src/components/TaskCheckBadgeBar.vue b/frontend/src/components/TaskCheckBadgeBar.vue
index 10d8ac66ec..9c1449e92f 100644
--- a/frontend/src/components/TaskCheckBadgeBar.vue
+++ b/frontend/src/components/TaskCheckBadgeBar.vue
@@ -157,7 +157,7 @@ export default {
const result: TaskCheckRun[] = [];
for (const run of props.taskCheckRunList) {
const index = result.findIndex((item) => item.type == run.type);
- if (index >= 0 && result[index].createdTs < run.createdTs) {
+ if (index >= 0 && result[index].updatedTs < run.updatedTs) {
result[index] = run;
} else {
result.push(run);