From 26bc68442f528faf01b817e326290486747cec5c Mon Sep 17 00:00:00 2001 From: Arnav Sankaran Date: Thu, 22 Feb 2018 23:57:40 -0600 Subject: [PATCH] Return attendee id in fetchAttendeeForHost --- api/v1/controllers/RegistrationController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v1/controllers/RegistrationController.js b/api/v1/controllers/RegistrationController.js index 6edd3ce..fdc2857 100644 --- a/api/v1/controllers/RegistrationController.js +++ b/api/v1/controllers/RegistrationController.js @@ -322,6 +322,7 @@ function fetchAttendeeForHost(req, res, next) { .then((user) => services.RegistrationService.findAttendeeByUser(user, false)) .then((attendee) => { res.body = {}; + res.body.id = attendee.get('id'); res.body.firstName = attendee.get('firstName'); res.body.lastName = attendee.get('lastName'); res.body.shirtSize = attendee.get('shirtSize');