Skip to content

Commit a48c0ac

Browse files
committed
fix: Incorrect field reference (#2653)
1 parent 681b2a0 commit a48c0ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/services/task_results.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ function mergeTaskAndAnswer(
261261
taskResult.is_ac = status.is_ac;
262262
taskResult.user_id = userId;
263263

264-
if (status.updated_at) {
265-
taskResult.updated_at = status.updated_at;
264+
if (answer.updated_at) {
265+
taskResult.updated_at = answer.updated_at;
266266
}
267267
}
268268

src/lib/types/answer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export interface TaskAnswer {
22
task_id: string;
33
user_id: string;
44
status_id: string;
5+
updated_at: Date;
56
}

0 commit comments

Comments
 (0)