mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 09:02:44 +00:00
Prevent share view uncompressing text.
This commit is contained in:
@@ -38,6 +38,7 @@ HomebrewSchema.methods.increaseView = function(){
|
|||||||
return new Promise((resolve, reject)=>{
|
return new Promise((resolve, reject)=>{
|
||||||
this.lastViewed = new Date();
|
this.lastViewed = new Date();
|
||||||
this.views = this.views + 1;
|
this.views = this.views + 1;
|
||||||
|
this.text = undefined;
|
||||||
this.save((err)=>{
|
this.save((err)=>{
|
||||||
if(err) return reject(err);
|
if(err) return reject(err);
|
||||||
return resolve(this);
|
return resolve(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user