From 9393898e06c827b29014b029b951e6c5cedb5afd Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Thu, 24 Apr 2025 21:33:14 +0200 Subject: [PATCH] refactor: Linting --- backend/src/services/questions.ts | 3 ++- .../test_assets/questions/answers.testdata.ts | 1 - .../src/components/QuestionNotification.vue | 21 ++++++++----------- frontend/src/components/SingleQuestion.vue | 16 +++++++------- .../views/learning-paths/LearningPathPage.vue | 16 +++++++------- 5 files changed, 27 insertions(+), 30 deletions(-) diff --git a/backend/src/services/questions.ts b/backend/src/services/questions.ts index 09643cd2..24f753a3 100644 --- a/backend/src/services/questions.ts +++ b/backend/src/services/questions.ts @@ -90,7 +90,8 @@ export async function createQuestion(loId: LearningObjectIdentifier, questionDat let assignment; if (typeof questionData.inGroup.assignment === 'number' && typeof questionData.inGroup.class === 'string') { - assignment = await fetchAssignment(questionData.inGroup.class, questionData.inGroup.assignment); + assignment = await fetchAssignment(questionData.inGroup.class, + questionData.inGroup.assignment); } else { // TODO check if necessary and no conflicts to delete this if const clazz = await getClassRepository().findById((questionData.inGroup.assignment as AssignmentDTO).within); diff --git a/backend/tests/test_assets/questions/answers.testdata.ts b/backend/tests/test_assets/questions/answers.testdata.ts index 443f523d..5614cd6a 100644 --- a/backend/tests/test_assets/questions/answers.testdata.ts +++ b/backend/tests/test_assets/questions/answers.testdata.ts @@ -2,7 +2,6 @@ import { EntityManager } from '@mikro-orm/core'; import { Answer } from '../../../src/entities/questions/answer.entity'; import { Teacher } from '../../../src/entities/users/teacher.entity'; import { Question } from '../../../src/entities/questions/question.entity'; -import { getTestleerling1 } from '../users/students.testdata'; import { getTestleerkracht1 } from '../users/teachers.testdata'; import { getQuestion07 } from './questions.testdata'; diff --git a/frontend/src/components/QuestionNotification.vue b/frontend/src/components/QuestionNotification.vue index 30d73e00..e9b6ed7e 100644 --- a/frontend/src/components/QuestionNotification.vue +++ b/frontend/src/components/QuestionNotification.vue @@ -1,24 +1,21 @@