feat: deadline veld toegevoegd
This commit is contained in:
parent
a59417b8f5
commit
fb144e94a0
4 changed files with 32 additions and 5842 deletions
|
@ -26,6 +26,9 @@ export class Assignment {
|
|||
@Property({ type: 'string' })
|
||||
learningPathHruid!: string;
|
||||
|
||||
@Property({ type: 'datetime' , nullable: true})
|
||||
deadline?: Date;
|
||||
|
||||
@Enum({
|
||||
items: () => Language,
|
||||
})
|
||||
|
|
|
@ -20,6 +20,7 @@ export function mapToAssignmentDTO(assignment: Assignment): AssignmentDTO {
|
|||
description: assignment.description,
|
||||
learningPath: assignment.learningPathHruid,
|
||||
language: assignment.learningPathLanguage,
|
||||
deadline: assignment.deadline,
|
||||
groups: assignment.groups.map((group) => mapToGroupDTO(group, assignment.within)),
|
||||
};
|
||||
}
|
||||
|
@ -31,6 +32,7 @@ export function mapToAssignment(assignmentData: AssignmentDTO, cls: Class): Assi
|
|||
description: assignmentData.description,
|
||||
learningPathHruid: assignmentData.learningPath,
|
||||
learningPathLanguage: languageMap[assignmentData.language],
|
||||
deadline: assignmentData.deadline,
|
||||
groups: [],
|
||||
});
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ export interface AssignmentDTO {
|
|||
description: string;
|
||||
learningPath: string;
|
||||
language: string;
|
||||
deadline: Date;
|
||||
groups: GroupDTO[] | string[][];
|
||||
}
|
||||
|
||||
|
|
5868
package-lock.json
generated
5868
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue