fixes for adding email for landing page
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user