style: fix linting issues met ESLint
This commit is contained in:
parent
710adcaa34
commit
b8aae0ab1b
17 changed files with 46 additions and 136 deletions
|
@ -4,9 +4,7 @@ import { LearningObject } from './learning-object.entity.js';
|
|||
@Entity()
|
||||
export class Attachment {
|
||||
@ManyToOne({
|
||||
entity: () => {
|
||||
return LearningObject;
|
||||
},
|
||||
entity: () => LearningObject,
|
||||
primary: true,
|
||||
})
|
||||
learningObject!: LearningObject;
|
||||
|
|
|
@ -18,9 +18,7 @@ export class LearningObject {
|
|||
hruid!: string;
|
||||
|
||||
@Enum({
|
||||
items: () => {
|
||||
return Language;
|
||||
},
|
||||
items: () => Language,
|
||||
primary: true,
|
||||
})
|
||||
language!: Language;
|
||||
|
@ -29,9 +27,7 @@ export class LearningObject {
|
|||
version: string = '1';
|
||||
|
||||
@ManyToMany({
|
||||
entity: () => {
|
||||
return Teacher;
|
||||
},
|
||||
entity: () => Teacher,
|
||||
})
|
||||
admins!: Teacher[];
|
||||
|
||||
|
@ -57,9 +53,7 @@ export class LearningObject {
|
|||
skosConcepts!: string[];
|
||||
|
||||
@Embedded({
|
||||
entity: () => {
|
||||
return EducationalGoal;
|
||||
},
|
||||
entity: () => EducationalGoal,
|
||||
array: true,
|
||||
})
|
||||
educationalGoals: EducationalGoal[] = [];
|
||||
|
@ -77,9 +71,7 @@ export class LearningObject {
|
|||
estimatedTime!: number;
|
||||
|
||||
@Embedded({
|
||||
entity: () => {
|
||||
return ReturnValue;
|
||||
},
|
||||
entity: () => ReturnValue,
|
||||
})
|
||||
returnValue!: ReturnValue;
|
||||
|
||||
|
@ -90,9 +82,7 @@ export class LearningObject {
|
|||
contentLocation?: string;
|
||||
|
||||
@OneToMany({
|
||||
entity: () => {
|
||||
return Attachment;
|
||||
},
|
||||
entity: () => Attachment,
|
||||
mappedBy: 'learningObject',
|
||||
})
|
||||
attachments: Attachment[] = [];
|
||||
|
|
|
@ -17,17 +17,13 @@ export class LearningPath {
|
|||
hruid!: string;
|
||||
|
||||
@Enum({
|
||||
items: () => {
|
||||
return Language;
|
||||
},
|
||||
items: () => Language,
|
||||
primary: true,
|
||||
})
|
||||
language!: Language;
|
||||
|
||||
@ManyToMany({
|
||||
entity: () => {
|
||||
return Teacher;
|
||||
},
|
||||
entity: () => Teacher,
|
||||
})
|
||||
admins!: Teacher[];
|
||||
|
||||
|
@ -41,9 +37,7 @@ export class LearningPath {
|
|||
image!: string;
|
||||
|
||||
@Embedded({
|
||||
entity: () => {
|
||||
return LearningPathNode;
|
||||
},
|
||||
entity: () => LearningPathNode,
|
||||
array: true,
|
||||
})
|
||||
nodes: LearningPathNode[] = [];
|
||||
|
@ -55,9 +49,7 @@ export class LearningPathNode {
|
|||
learningObjectHruid!: string;
|
||||
|
||||
@Enum({
|
||||
items: () => {
|
||||
return Language;
|
||||
},
|
||||
items: () => Language,
|
||||
})
|
||||
language!: Language;
|
||||
|
||||
|
@ -71,9 +63,7 @@ export class LearningPathNode {
|
|||
startNode!: boolean;
|
||||
|
||||
@Embedded({
|
||||
entity: () => {
|
||||
return LearningPathTransition;
|
||||
},
|
||||
entity: () => LearningPathTransition,
|
||||
array: true,
|
||||
})
|
||||
transitions!: LearningPathTransition[];
|
||||
|
@ -85,9 +75,7 @@ export class LearningPathTransition {
|
|||
condition!: string;
|
||||
|
||||
@OneToOne({
|
||||
entity: () => {
|
||||
return LearningPathNode;
|
||||
},
|
||||
entity: () => LearningPathNode,
|
||||
})
|
||||
next!: LearningPathNode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue