test(backend): Testen voor LearningObjectService toegevoegd

This commit is contained in:
Gerald Schmittinger 2025-03-10 22:30:54 +01:00
parent 8152306a92
commit cb6056e9d7
3 changed files with 82 additions and 2 deletions

View file

@ -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;
}