refactor(backend): Ondersteuning voor gepersonaliseerde leerpaden toegevoegd.

This commit is contained in:
Gerald Schmittinger 2025-04-01 00:31:16 +02:00
parent a17e2b2793
commit dc99835a9d
3 changed files with 99 additions and 78 deletions

View file

@ -16,7 +16,7 @@ export function useGetLearningPathQuery(
queryKey: [LEARNING_PATH_KEY, "get", hruid, language, options],
queryFn: () => {
const [hruidVal, languageVal, optionsVal] = [toValue(hruid), toValue(language), toValue(options)];
return learningPathController.getBy(hruidVal, languageVal)
return learningPathController.getBy(hruidVal, languageVal, optionsVal)
},
enabled: () => Boolean(toValue(hruid)) && Boolean(toValue(language)),
})