diff --git a/frontend/src/app/assignment/modules/solution/feedback/feedback.component.ts b/frontend/src/app/assignment/modules/solution/feedback/feedback.component.ts index ecb619f3a..180b2eaca 100644 --- a/frontend/src/app/assignment/modules/solution/feedback/feedback.component.ts +++ b/frontend/src/app/assignment/modules/solution/feedback/feedback.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import {Component, OnInit} from '@angular/core'; import Solution, {Feedback} from "../../../model/solution"; import {ActivatedRoute} from "@angular/router"; import {SolutionService} from "../../../services/solution.service"; @@ -10,7 +10,7 @@ import {ToastService} from "@mean-stream/ngbx"; templateUrl: './feedback.component.html', styleUrls: ['./feedback.component.scss'] }) -export class FeedbackComponent { +export class FeedbackComponent implements OnInit { protected readonly Feedback = Feedback; feedback: Feedback = {}; diff --git a/frontend/src/app/assignment/modules/solution/snippet-list/snippet-list.component.ts b/frontend/src/app/assignment/modules/solution/snippet-list/snippet-list.component.ts index b69dd0216..d93021f7d 100644 --- a/frontend/src/app/assignment/modules/solution/snippet-list/snippet-list.component.ts +++ b/frontend/src/app/assignment/modules/solution/snippet-list/snippet-list.component.ts @@ -1,4 +1,4 @@ -import {Component, Input, OnInit} from '@angular/core'; +import {Component, Input, OnDestroy, OnInit} from '@angular/core'; import {CreateEvaluationDto, Snippet} from "../../../model/evaluation"; import {merge, Observable, Subject, Subscription} from "rxjs"; import {SearchSummary} from "../../../model/search-result"; @@ -18,7 +18,7 @@ export const selectionComment = '(fulibFeedback Selection)'; templateUrl: './snippet-list.component.html', styleUrls: ['./snippet-list.component.scss'] }) -export class SnippetListComponent implements OnInit { +export class SnippetListComponent implements OnInit, OnDestroy { @Input({required: true}) task?: Task; @Input({required: true}) dto: CreateEvaluationDto; diff --git a/services/apps/assignments/src/course/course.service.ts b/services/apps/assignments/src/course/course.service.ts index e6c847a46..4c43fdd79 100644 --- a/services/apps/assignments/src/course/course.service.ts +++ b/services/apps/assignments/src/course/course.service.ts @@ -2,7 +2,7 @@ import {EventService} from '@mean-stream/nestx'; import {Injectable} from '@nestjs/common'; import {InjectModel} from '@nestjs/mongoose'; import {FilterQuery, Model} from 'mongoose'; -import {AuthorInfo, Solution} from '../solution/solution.schema'; +import {AuthorInfo} from '../solution/solution.schema'; import {SolutionService} from '../solution/solution.service'; import {idFilter} from '../utils'; import {CourseStudent, CreateCourseDto, UpdateCourseDto} from './course.dto'; diff --git a/services/libs/member/src/member.schema.ts b/services/libs/member/src/member.schema.ts index f78d9d6e9..bbe33dce3 100644 --- a/services/libs/member/src/member.schema.ts +++ b/services/libs/member/src/member.schema.ts @@ -2,7 +2,6 @@ import {Ref} from '@mean-stream/nestx'; import {Prop, Schema, SchemaFactory} from '@nestjs/mongoose'; import {ApiProperty} from '@nestjs/swagger'; import {Document, Types} from 'mongoose'; -import {Project} from '../../../apps/projects/src/project/project.schema'; @Schema({_id: false, id: false}) export class Member {