0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 07:52:40 +00:00

Edit working - with noise.

This commit is contained in:
David Bolack
2024-02-27 19:33:33 -06:00
parent 50c9d95ce0
commit 56851f2c2d
3 changed files with 21 additions and 4 deletions

View File

@@ -286,6 +286,9 @@ app.get('/user/:username', async (req, res, next)=>{
//Edit Page
app.get('/edit/:id', asyncHandler(getBrew('edit')), async(req, res, next)=>{
req.brew = req.brew.toObject ? req.brew.toObject() : req.brew;
console.log('Load Edit');
console.log(req.brew);
console.log('Load Edit');
req.ogMeta = { ...defaultMetaTags,
title : req.brew.title || 'Untitled Brew',