mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 02:08:47 +00:00
Merge branch 'master' of github.com:ClaytonWWilson/CS307-Team24
This commit is contained in:
commit
52bd8eed64
@ -32,6 +32,7 @@ module.exports = (req, res, next) => {
|
||||
.then((data) => {
|
||||
req.user.handle = data.docs[0].data().handle; // Save username
|
||||
req.user.imageUrl = data.docs[0].data().imageUrl;
|
||||
req.userData = data.docs[0].data(); // Stores all user data from the database
|
||||
return next();
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user