Merge branch 'feat/endpoints-in-backend-om-eigen-leerpaden-en-leerobjecten-toe-te-voegen-aan-de-databank-#248' of https://github.com/SELab-2/Dwengo-1 into feat/endpoints-in-backend-om-eigen-leerpaden-en-leerobjecten-toe-te-voegen-aan-de-databank-#248
This commit is contained in:
commit
9206be60b5
2 changed files with 18 additions and 19 deletions
|
@ -25,7 +25,7 @@ export class LearningPathController extends BaseController {
|
|||
classId: forGroup?.classId,
|
||||
});
|
||||
if (dtos.length === 0) {
|
||||
throw new NotFoundException('learningPathNotFound')
|
||||
throw new NotFoundException("learningPathNotFound");
|
||||
}
|
||||
return LearningPath.fromDTO(dtos[0]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue