feat: add sort_order field to quiz attempt detail answers review
Add sort_order field to answers_review in QuizAttemptDetailData interface and include it in getQuizAttemptDetail response to maintain question ordering in quiz attempt reviews.
This commit is contained in:
parent
278bc17fa0
commit
c07d847955
2 changed files with 2 additions and 0 deletions
|
|
@ -864,6 +864,7 @@ export class CoursesInstructorService {
|
|||
|
||||
return {
|
||||
question_id: question.id,
|
||||
sort_order: question.sort_order,
|
||||
question_text: question.question as { th: string; en: string },
|
||||
selected_choice_id: selectedChoiceId,
|
||||
selected_choice_text: selectedChoice ? selectedChoice.text as { th: string; en: string } : null,
|
||||
|
|
|
|||
|
|
@ -313,6 +313,7 @@ export interface QuizAttemptDetailData {
|
|||
completed_at: Date | null;
|
||||
answers_review: {
|
||||
question_id: number;
|
||||
sort_order: number;
|
||||
question_text: MultiLanguageText;
|
||||
selected_choice_id: number | null;
|
||||
selected_choice_text: MultiLanguageText | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue