0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Prepend 'CLONE:- ' to title of cloned brew

This commit is contained in:
G.Ambatte
2021-07-25 16:54:24 +12:00
parent 3948e17da2
commit f31fe6cbf0

View File

@@ -170,6 +170,7 @@ app.get('/edit/:id', asyncHandler(async (req, res, next)=>{
//New Page
app.get('/new/:id', asyncHandler(async (req, res, next)=>{
const brew = await getBrewFromId(req.params.id, 'share');
brew.title = `CLONE:- ${brew.title}`;
req.brew = brew;
return next();
}));