mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-15 10:18:44 +00:00
add a flag to getbrew
This commit is contained in:
@@ -113,7 +113,7 @@ const api = {
|
||||
|
||||
return userThemes;
|
||||
},
|
||||
getBrew : (accessType, stubOnly = false)=>{
|
||||
getBrew : (accessType, stubOnly = false, split = true)=>{
|
||||
// Create middleware with the accessType passed in as part of the scope
|
||||
return async (req, res, next)=>{
|
||||
// Get relevant IDs for the brew
|
||||
@@ -178,7 +178,7 @@ const api = {
|
||||
stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields
|
||||
|
||||
req.brew = migrateSystemsToTags(stub);
|
||||
splitTextStyleAndMetadata(req.brew);
|
||||
split && splitTextStyleAndMetadata(req.brew);
|
||||
next();
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user