fix: diverse kleine bugs

Bij het zoeken van leerpaden en het renderen van leerobjecten.
This commit is contained in:
Gerald Schmittinger 2025-04-16 11:42:13 +02:00
parent a803b45046
commit 6d452c7f72
10 changed files with 20 additions and 29 deletions

View file

@ -8,8 +8,8 @@ export class LearningPathController extends BaseController {
constructor() {
super("learningPath");
}
async search(query: string): Promise<LearningPath[]> {
const dtos = await this.get<LearningPathDTO[]>("/", { search: query });
async search(query: string, language: string): Promise<LearningPath[]> {
const dtos = await this.get<LearningPathDTO[]>("/", { search: query, language });
return dtos.map((dto) => LearningPath.fromDTO(dto));
}
async getBy(