mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 03:37:04 +00:00
Don't forget to update the schema!
This commit is contained in:
1 parent
14c7a11528
commit
874cbe1da4
1 file changed
+3
-1
@@ -26,7 +26,9 @@ const HomebrewSchema = mongoose.Schema({
|
||||
updatedAt : { type: Date, default: Date.now },
|
||||
lastViewed : { type: Date, default: Date.now },
|
||||
views : { type: Number, default: 0 },
|
||||
version : { type: Number, default: 1 }
|
||||
version : { type: Number, default: 1 },
|
||||
|
||||
lock : { type: Object }
|
||||
}, { versionKey: false });
|
||||
|
||||
HomebrewSchema.statics.increaseView = async function(query) {
|
||||
|
||||
Reference in new issue
Block a user