0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 15:12:39 +00:00

Update API to support homebrew tags

#758
This commit is contained in:
Charlie Humphreys
2021-11-17 22:22:33 -06:00
parent 0d685acfca
commit 22f9efd58a
2 changed files with 20 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ const updateBrew = (req, res)=>{
const updateBrew = excludePropsFromUpdate(req.body);
brew = _.merge(brew, updateBrew);
brew.text = mergeBrewText(brew.text, brew.style);
brew.tags = updateBrew.tags;
// Compress brew text to binary before saving
brew.textBin = zlib.deflateRawSync(brew.text);