0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 02:02:43 +00:00

Cleanup; added more fields to DEFAULT_BREW

This commit is contained in:
Trevor Buckner
2023-01-04 17:33:23 -05:00
parent e1765cad41
commit e02bde5eed
3 changed files with 25 additions and 20 deletions

View File

@@ -407,7 +407,10 @@ if(isLocalEnvironment){
//Render the page
const templateFn = require('./../client/template.js');
app.use(asyncHandler(async (req, res, next)=>{
// Assuming we have not received a brew yet, populate with default values
const brew = _.defaults(req.brew, DEFAULT_BREW);
// Create configuration object
const configuration = {
local : isLocalEnvironment,