test(backend): Testen voor LearningObjectService toegevoegd
This commit is contained in:
parent
8152306a92
commit
cb6056e9d7
3 changed files with 82 additions and 2 deletions
|
@ -107,7 +107,7 @@ const dwengoApiLearningObjectProvider: LearningObjectProvider = {
|
|||
}
|
||||
);
|
||||
|
||||
if (!metadata) {
|
||||
if (!metadata || typeof metadata !== "object") {
|
||||
console.error(`⚠️ WARNING: Learning object "${id.hruid}" not found.`);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue