style: fix linting issues met ESLint
This commit is contained in:
parent
ccacc69ed8
commit
e58835aa17
5 changed files with 9 additions and 11 deletions
|
@ -8,9 +8,7 @@ import { TeacherInvitationRepository } from '../../data/classes/teacher-invitati
|
|||
*/
|
||||
@Entity({ repository: () => TeacherInvitationRepository })
|
||||
@Entity({
|
||||
repository: () => {
|
||||
return TeacherInvitationRepository;
|
||||
},
|
||||
repository: () => TeacherInvitationRepository,
|
||||
})
|
||||
export class TeacherInvitation {
|
||||
@ManyToOne({
|
||||
|
|
|
@ -25,7 +25,7 @@ export class SqliteAutoincrementSubscriber implements EventSubscriber {
|
|||
return; // If there is not a composite primary key, autoincrement works fine with SQLite anyway.
|
||||
}
|
||||
|
||||
for (let prop of Object.values(args.meta.properties)) {
|
||||
for (const prop of Object.values(args.meta.properties)) {
|
||||
const property = prop as EntityProperty<T>;
|
||||
if (property.primary && property.autoincrement && !(args.entity as Record<string, any>)[property.name]) {
|
||||
// Obtain and increment sequence number of this entity.
|
||||
|
|
|
@ -72,8 +72,8 @@ export function makeTestLearningPaths(
|
|||
learningPathNode05.version = 1;
|
||||
|
||||
const nodes01: Array<LearningPathNode> = [
|
||||
// learningPathNode01,
|
||||
// learningPathNode02,
|
||||
// LearningPathNode01,
|
||||
// LearningPathNode02,
|
||||
];
|
||||
const learningPath01 = em.create(LearningPath, {
|
||||
hruid: 'id01',
|
||||
|
@ -86,9 +86,9 @@ export function makeTestLearningPaths(
|
|||
});
|
||||
|
||||
const nodes02: Array<LearningPathNode> = [
|
||||
// learningPathNode03,
|
||||
// learningPathNode04,
|
||||
// learningPathNode05,
|
||||
// LearningPathNode03,
|
||||
// LearningPathNode04,
|
||||
// LearningPathNode05,
|
||||
];
|
||||
const learningPath02 = em.create(LearningPath, {
|
||||
hruid: 'id02',
|
||||
|
|
|
@ -40,7 +40,7 @@ export function makeTestStudents(
|
|||
lastName: 'Morisson',
|
||||
});
|
||||
|
||||
// do not use for any tests, gets deleted in a unit test
|
||||
// Do not use for any tests, gets deleted in a unit test
|
||||
const student07 = em.create(Student, {
|
||||
username: 'Nirvana',
|
||||
firstName: 'Kurt',
|
||||
|
|
|
@ -22,7 +22,7 @@ export function makeTestTeachers(
|
|||
lastName: 'Lewis',
|
||||
});
|
||||
|
||||
// should not be used, gets deleted in a unit test
|
||||
// Should not be used, gets deleted in a unit test
|
||||
const teacher04 = em.create(Teacher, {
|
||||
username: 'ZesdeMetaal',
|
||||
firstName: 'Wannes',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue