feat(backend): Repositories voor leerinhoud

LearningObjectRepository, LearningPathRepository en AttachmentRepository aangemaakt.
This commit is contained in:
Gerald Schmittinger 2025-02-26 00:52:45 +01:00
parent cf97a3af84
commit 8ec201513c
5 changed files with 36 additions and 2 deletions

View 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.
}