Item request notifications

This commit is contained in:
jackiettran
2025-11-18 22:28:47 -05:00
parent 026e748bf8
commit 413ac6b6e2
11 changed files with 875 additions and 224 deletions

View File

@@ -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