Skip to content

Commit

Permalink
test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellinaresxk committed Sep 7, 2023
1 parent 5d7b0fc commit 2487125
Show file tree
Hide file tree
Showing 2 changed files with 469 additions and 332 deletions.
8 changes: 4 additions & 4 deletions controllers/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ const editCourseHandler = (req, res, next) => {
])
.then(([course, _classes, _teachers, _students, _scopePermissions]) => {
// these 3 might not change anything because hooks allow just ownSchool results by now, but to be sure:
if (course.name) {
course.name = decode(course.name);
if (course.title) {
course.title = decode(course.title);
}

if (course.description) {
course.description = decode(course.description);
if (course.content) {
course.content = decode(course.content);
}

const classes = _classes
Expand Down
Loading

0 comments on commit 2487125

Please sign in to comment.