0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 13:22:40 +00:00

avoid sending two copies of welcome text in the same brew

This commit is contained in:
Trevor Buckner
2021-07-30 17:47:11 -04:00
parent 85fa73b9bf
commit 99d2f6d48d
2 changed files with 5 additions and 6 deletions

View File

@@ -108,8 +108,7 @@ app.get('/robots.txt', (req, res)=>{
//Home page
app.get('/', async (req, res, next)=>{
const brew = {
text : welcomeText,
welcomeText : welcomeText
text : welcomeText
};
req.brew = brew;
return next();