mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 05:32:41 +00:00
Ensure getBrew returns an object if undefined
This commit is contained in:
committed by
Victor Losada Hernandez
parent
692daa88fc
commit
128b299f25
@@ -82,7 +82,7 @@ If you believe you should have access to this brew, ask the file owner to invite
|
|||||||
stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields
|
stub = _.defaults(stub, DEFAULT_BREW_LOAD); // Fill in blank fields
|
||||||
}
|
}
|
||||||
|
|
||||||
req.brew = stub;
|
req.brew = stub ?? {};
|
||||||
next();
|
next();
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user