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:
@@ -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();
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user