feat(backend): Repositories voor leerinhoud
LearningObjectRepository, LearningPathRepository en AttachmentRepository aangemaakt.
This commit is contained in:
parent
cf97a3af84
commit
8ec201513c
5 changed files with 36 additions and 2 deletions
10
backend/src/data/content/learning-path-repository.ts
Normal file
10
backend/src/data/content/learning-path-repository.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import {DwengoEntityRepository} from "../dwengo-entity-repository";
|
||||
import {LearningPath} from "../../entities/content/learning-path.entity";
|
||||
import {Language} from "../../entities/content/language";
|
||||
|
||||
export class LearningPathRepository extends DwengoEntityRepository<LearningPath> {
|
||||
public findByHruidAndLanguage(hruid: string, language: Language): Promise<LearningPath | null> {
|
||||
return this.findOne({hruid: hruid, language: language});
|
||||
}
|
||||
// This repository is read-only for now since creating own learning object is an extension feature.
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue