style: fix linting issues met ESLint
This commit is contained in:
parent
b5390258e3
commit
e78849f568
21 changed files with 64 additions and 116 deletions
|
@ -50,13 +50,11 @@ export class QuestionRepository extends DwengoEntityRepository<Question> {
|
|||
public async findAllByLearningObjects(
|
||||
learningObjects: LearningObject[]
|
||||
): Promise<Question[]> {
|
||||
const objectIdentifiers = learningObjects.map((lo) => {
|
||||
return {
|
||||
const objectIdentifiers = learningObjects.map((lo) => ({
|
||||
learningObjectHruid: lo.hruid,
|
||||
learningObjectLanguage: lo.language,
|
||||
learningObjectVersion: lo.version,
|
||||
};
|
||||
});
|
||||
}));
|
||||
|
||||
return this.findAll({
|
||||
where: { $or: objectIdentifiers },
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { Student } from '../../entities/users/student.entity.js';
|
||||
import { User } from '../../entities/users/user.entity.js';
|
||||
import { DwengoEntityRepository } from '../dwengo-entity-repository.js';
|
||||
// import { UserRepository } from './user-repository.js';
|
||||
// Import { UserRepository } from './user-repository.js';
|
||||
|
||||
// export class StudentRepository extends UserRepository<Student> {}
|
||||
// Export class StudentRepository extends UserRepository<Student> {}
|
||||
|
||||
export class StudentRepository extends DwengoEntityRepository<Student> {
|
||||
public findByUsername(username: string): Promise<Student | null> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue