0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Prevent share view uncompressing text.

This commit is contained in:
Trevor Buckner
2020-10-19 16:37:01 -04:00
parent 1d50cbf684
commit 460d3fe111

View File

@@ -38,6 +38,7 @@ HomebrewSchema.methods.increaseView = function(){
return new Promise((resolve, reject)=>{
this.lastViewed = new Date();
this.views = this.views + 1;
this.text = undefined;
this.save((err)=>{
if(err) return reject(err);
return resolve(this);