mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
Disabled the feed route rewrite and small fixes.
This commit is contained in:
parent
5642b685bc
commit
262e59df65
@ -17,11 +17,7 @@
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"rewrites": [{
|
||||
"source": "/feed",
|
||||
"destination": "/feed.html"
|
||||
}]
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"rules": "storage.rules"
|
||||
|
||||
@ -119,15 +119,15 @@ app.post('/updateProfileInfo', (req, res) => {
|
||||
|
||||
// Update the database entry for this user
|
||||
db.collection('users').doc(req.user.handle).set(profileData, {merge: true})
|
||||
.then((data) =>{
|
||||
.then(() => {
|
||||
console.log(`${req.user.handle}'s profile info has been updated.`)
|
||||
return res.status(200).json({general: `${req.user.handle}'s profile info has been updated.`});
|
||||
})
|
||||
.catch((err) => {
|
||||
res.status(500).json({
|
||||
console.error(err);
|
||||
return res.status(500).json({
|
||||
error: 'Error updating profile data'
|
||||
});
|
||||
console.error(err);
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user