mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 20:42: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
|
//New Page
|
||||||
app.get('/new/:id', asyncHandler(async (req, res, next)=>{
|
app.get('/new/:id', asyncHandler(async (req, res, next)=>{
|
||||||
const brew = await getBrewFromId(req.params.id, 'share');
|
const brew = await getBrewFromId(req.params.id, 'share');
|
||||||
|
brew.title = `CLONE:- ${brew.title}`;
|
||||||
req.brew = brew;
|
req.brew = brew;
|
||||||
return next();
|
return next();
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user