Skip to content

Commit e889579

Browse files
author
Simeranjeet Sandhu
committed
Updating code for libxmljs upgrade
1 parent a9916f1 commit e889579

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

player/service/plugins/routes/v1/courses.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ const validateAndReduceStructure = (document, lmsId) => {
215215
blocks: {}
216216
};
217217

218-
result.course.id = course.attr("id").value();
218+
// result.course.id = course.attr("id").value();
219+
const attr = course.attr("id");
220+
result.course.id = attr && attr.value; // .value is now a property
221+
219222

220223
validateIRI(result.course.id);
221224

0 commit comments

Comments
 (0)