0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-28 03:38:11 +00:00

Update Version number & cleanup

This commit is contained in:
Trevor Buckner
2020-10-07 15:02:42 -04:00
parent ed1c589e2d
commit 0afb503860
10 changed files with 38 additions and 61 deletions

View File

@@ -97,7 +97,6 @@ app.get('/user/:username', async (req, res, next)=>{
let googleBrews = [];
if(req.account && req.account.googleId){
console.log('GETTING DATA FOR USER PAGE');
googleBrews = await GoogleActions.listGoogleBrews(req, res)
.catch((err)=>{
console.error(err);
@@ -202,7 +201,7 @@ app.use((req, res)=>{
account : req.account,
};
templateFn('homebrew', props)
.then((page)=>{console.log('^--- END OF REQUEST ---^'); res.send(page);})
.then((page)=>{res.send(page);})
.catch((err)=>{
console.log(err);
return res.sendStatus(500);