박권수

feat. get bottle id

...@@ -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 };
......