fix: lint

This commit is contained in:
Gabriellvl 2025-04-13 20:54:05 +02:00
parent 17dc9649c5
commit a824cdff94
6 changed files with 5 additions and 11 deletions

View file

@ -1,5 +1,4 @@
import { TeacherInvitation } from '../entities/classes/teacher-invitation.entity.js';
import { mapToClassDTO } from './class.js';
import { mapToUserDTO } from './user.js';
import { TeacherInvitationDTO } from '@dwengo-1/common/interfaces/teacher-invitation';
import {getTeacherInvitationRepository} from "../data/repositories";

View file

@ -50,7 +50,7 @@ async function fetchInvitation(sender: Teacher, receiver: Teacher, cls: Class):
return invite;
}
export async function deleteInvitationFor(usernameSender: string, usernameReceiver: string, classId: string, accepted: boolean) {
export async function deleteInvitationFor(usernameSender: string, usernameReceiver: string, classId: string, accepted: boolean): Promise<TeacherInvitationDTO> {
const teacherInvitationRepository = getTeacherInvitationRepository();
const sender = await fetchTeacher(usernameSender);
const receiver = await fetchTeacher(usernameReceiver);

View file

@ -42,9 +42,6 @@ export async function setupTestApp(): Promise<void> {
const answers = makeTestAnswers(em, teachers, questions);
const submissions = makeTestSubmissions(em, students, groups);
console.log("classes", classes);
console.log("invitations", teacherInvitations);
await em.persistAndFlush([
...students,
...teachers,