Skip to content

Commit

Permalink
removed console.dirs and the weird duplicated line.
Browse files Browse the repository at this point in the history
  • Loading branch information
HPunktOchs committed Jun 24, 2018
1 parent 8f29821 commit d648750
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion api/src/models/Course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ courseSchema.methods.forView = function (): ICourseView {
return {
_id: <string>extractMongoId(this._id),
name, description,
name, description,
courseAdmin: User.forCourseView(courseAdmin),
teachers: teachers.map((teacher: IUser) => User.forCourseView(teacher)),
lectures: lectures.map((lecture: any) => lecture.toObject())
Expand Down
4 changes: 0 additions & 4 deletions api/src/models/units/Unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ unitSchema.methods.exportJSON = function () {

// custom properties
delete obj._course;
console.dir('on export');
console.dir(obj);
return obj;
};

Expand Down Expand Up @@ -110,8 +108,6 @@ unitSchema.methods.toFile = function (): String {

unitSchema.statics.importJSON = async function (unit: IUnit, courseId: string, lectureId: string) {
unit._course = courseId;
console.dir('on import');
console.dir(unit);
try {
// Need to disabled this rule because we can't export 'Unit' BEFORE this function-declaration
// tslint:disable:no-use-before-declare
Expand Down

0 comments on commit d648750

Please sign in to comment.