fix(backend): Fout bij het gebruiken van requireFields opgelost.
This commit is contained in:
parent
f73d277687
commit
e488468650
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@ function postOrPutLearningPath(isPut: boolean): (req: AuthenticatedRequest, res:
|
|||
const path: LearningPath = req.body;
|
||||
const { hruid: hruidParam, language: languageParam } = req.params;
|
||||
|
||||
requireFields({ hruidParam, languageParam, path });
|
||||
if (isPut) {
|
||||
requireFields({ hruidParam, languageParam, path });
|
||||
}
|
||||
|
||||
const teacher = await getTeacher(req.auth!.username);
|
||||
if (isPut) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue