Item request notifications
This commit is contained in:
@@ -211,19 +211,20 @@ router.get('/:id', async (req, res) => {
|
||||
|
||||
router.put('/profile', authenticateToken, async (req, res) => {
|
||||
try {
|
||||
const {
|
||||
firstName,
|
||||
lastName,
|
||||
email,
|
||||
phone,
|
||||
const {
|
||||
firstName,
|
||||
lastName,
|
||||
email,
|
||||
phone,
|
||||
address1,
|
||||
address2,
|
||||
city,
|
||||
state,
|
||||
zipCode,
|
||||
country
|
||||
country,
|
||||
itemRequestNotificationRadius
|
||||
} = req.body;
|
||||
|
||||
|
||||
// Build update object, excluding empty email
|
||||
const updateData = {
|
||||
firstName,
|
||||
@@ -234,7 +235,8 @@ router.put('/profile', authenticateToken, async (req, res) => {
|
||||
city,
|
||||
state,
|
||||
zipCode,
|
||||
country
|
||||
country,
|
||||
itemRequestNotificationRadius
|
||||
};
|
||||
|
||||
// Only include email if it's not empty
|
||||
|
||||
Reference in New Issue
Block a user