Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -16,6 +16,10 @@ BottleSchema.statics.findByBottleId = function(bottleId) { | ... | @@ -16,6 +16,10 @@ BottleSchema.statics.findByBottleId = function(bottleId) { |
| 16 | return this.findOne({ bottleId }); | 16 | return this.findOne({ bottleId }); |
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | +BottleSchema.methods.getBottleId = function() { | ||
| 20 | + return this.bottleId; | ||
| 21 | +}; | ||
| 22 | + | ||
| 19 | BottleSchema.methods.getRecentOpenDate = function() { | 23 | BottleSchema.methods.getRecentOpenDate = function() { |
| 20 | return this.recentOpen; | 24 | return this.recentOpen; |
| 21 | }; | 25 | }; | ... | ... |
-
Please register or login to post a comment