fixes for adding email for landing page

This commit is contained in:
Arjun Patel
2019-04-21 01:36:51 -07:00
parent 232d3ad098
commit 663759f56b
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -19,10 +19,7 @@ exports.addEmail = (req, res, next) => {
})
.then(donor => {
// Send created user to client
return res.status(201).json({
message: 'User created',
donor
});
return res.status(201).json(donor);
})
.catch(error => next(error));
}
+1 -1
View File
@@ -33,7 +33,7 @@ router.get(
router.get('/organizations/:search', organization.searchOrganizations);
// Add user email to database from the landing page
router.post('/users/landing', user.addEmail);
router.post('/landing/email', user.addEmail);
// Test sending an email
router.post('/email/test', sendgrid.testEmail);