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

Revert "Merge pull request #867 from naturalcrit/compressBrews"

This reverts commit 94d090277f, reversing
changes made to aeffec1763.
This commit is contained in:
Trevor Buckner
2020-01-23 10:27:30 -05:00
parent 94d090277f
commit 4128670a9f
6 changed files with 5 additions and 125 deletions

View File

@@ -53,7 +53,7 @@ HomebrewSchema.statics.get = function(query){
return new Promise((resolve, reject)=>{
Homebrew.find(query, (err, brews)=>{
if(err || !brews.length) return reject('Can not find brew');
if(!_.isNil(brews[0].textBin)) { // Uncompress zipped text field
if(!_.isUndefined(brews[0].textBin)) { // Uncompress zipped text field
unzipped = zlib.inflateRawSync(brews[0].textBin);
brews[0].text = unzipped.toString();
}