File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export async function getAnswers(user_id: string) {
3232export async function getAnswersWithSelectedTaskIds (
3333 selectedTaskIds : string [ ] ,
3434 userId : string ,
35- ) : Promise < Array < Pick < TaskAnswer , 'task_id' | 'user_id' | 'status_id' > > > {
35+ ) : Promise < Pick < TaskAnswer , 'task_id' | 'user_id' | 'status_id' | 'updated_at' > [ ] > {
3636 if ( ! selectedTaskIds ?. length ) {
3737 return [ ] ;
3838 }
@@ -46,6 +46,7 @@ export async function getAnswersWithSelectedTaskIds(
4646 task_id : true ,
4747 user_id : true ,
4848 status_id : true ,
49+ updated_at : true ,
4950 } ,
5051 } ) ;
5152}
Original file line number Diff line number Diff line change @@ -260,6 +260,10 @@ function mergeTaskAndAnswer(
260260 taskResult . submission_status_label_name = status . label_name ;
261261 taskResult . is_ac = status . is_ac ;
262262 taskResult . user_id = userId ;
263+
264+ if ( status . updated_at ) {
265+ taskResult . updated_at = status . updated_at ;
266+ }
263267 }
264268
265269 return taskResult ;
You can’t perform that action at this time.
0 commit comments