Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
do not post unnecessary information in section
Browse files Browse the repository at this point in the history
  • Loading branch information
Evers authored and Evers committed Mar 4, 2020
1 parent b59220e commit 9aeaaf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/lessons/lessons.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ class Lessons {
lesson.sections = lesson.sections
.map((sectionId) => sections.data
.find(({ _id }) => sectionId.toString() === _id.toString()));
lesson.sections.forEach((s) => {
delete s.ref;
});
}

if (isfilledArray(attachments.data)) {
Expand Down

0 comments on commit 9aeaaf2

Please sign in to comment.