style: fix linting issues met ESLint

This commit is contained in:
Lint Action 2025-03-13 14:30:11 +00:00
parent ccacc69ed8
commit e58835aa17
5 changed files with 9 additions and 11 deletions

View file

@ -8,9 +8,7 @@ import { TeacherInvitationRepository } from '../../data/classes/teacher-invitati
*/
@Entity({ repository: () => TeacherInvitationRepository })
@Entity({
repository: () => {
return TeacherInvitationRepository;
},
repository: () => TeacherInvitationRepository,
})
export class TeacherInvitation {
@ManyToOne({

View file

@ -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.