diff --git a/api/v1/controllers/RegistrationController.js b/api/v1/controllers/RegistrationController.js index c8093df..7163524 100644 --- a/api/v1/controllers/RegistrationController.js +++ b/api/v1/controllers/RegistrationController.js @@ -167,7 +167,7 @@ function fetchAttendeeByUser(req, res, next) { .findAttendeeByUser(req.user, true) .then(function(attendee){ res.body = attendee.toJSON(); - delete res.body.data.reviewer; + delete res.body.reviewer; next(); return null; @@ -203,6 +203,7 @@ function updateAttendeeByUser(req, res, next) { }) .then(function(attendee){ res.body = attendee.toJSON(); + delete res.body.reviewer; next(); return null;