Skip to content

Commit

Permalink
fix: adds new virtuals to exportObject
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncking committed Aug 30, 2020
1 parent 8a3da97 commit 9401336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ MembersSchema.methods.exportObject = function () {
firstName: this.firstName,
lastName: this.lastName,
access: this.access,
accessName: this.accessName,
fullNameFL: this.fullNameFL,
fullNameLF: this.fullNameLF,
councilName: this.councilName,
Expand Down
2 changes: 2 additions & 0 deletions models/registrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@ RegistrationsSchema.methods.exportObject = function () {
dateMDY: this.dateMDY,
dateMDYHM: this.dateMDYHM,
type: this.type,
typeName: this.typeName,
title: this.title,
credits: this.credits,
instructor: this.instructor,
physical: this.physical,
online: this.online,
status: this.status,
statusName: this.statusName
};
};

Expand Down

0 comments on commit 9401336

Please sign in to comment.